mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-02 19:05:42 +00:00
The iio_utils uses a digit calculation in order to know length of the
file name containing a buffer number. The digit calculation does not
work for number 0.
This leads to allocation of one character too small buffer for the
file-name when file name contains value '0'. (Eg. buffer0).
Fix digit calculation by returning one digit to be present for number
'0'.
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| .gitignore | ||
| Build | ||
| iio_event_monitor.c | ||
| iio_generic_buffer.c | ||
| iio_utils.c | ||
| iio_utils.h | ||
| lsiio.c | ||
| Makefile | ||