commit | dc8b5d6e633f8e54f70594d0be87aaf401ea0559 | [log] [tgz] |
---|---|---|
author | Hartmut Knaack <knaack.h@gmx.de> | Sun May 31 14:39:59 2015 +0200 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun May 31 17:42:34 2015 +0100 |
tree | f5e63a71ac3522b744c32ae292fe7bbb5563e240 | |
parent | 8e926134ef15267f65ddfc7389c8078234610295 [diff] |
tools:iio:iio_utils: check amount of matches fscanf() usually returns the number of input items successfully matched and assigned, which can be fewer than provided (or even zero). Add a check in iioutils_get_type() to make sure all items are matched. Signed-off-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>