mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
72b2aa3819
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:
|
||
---|---|---|
.. | ||
.gitignore | ||
Build | ||
iio_event_monitor.c | ||
iio_generic_buffer.c | ||
iio_utils.c | ||
iio_utils.h | ||
lsiio.c | ||
Makefile |