mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-25 09:11:49 +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:
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Build | ||
| iio_event_monitor.c | ||
| iio_generic_buffer.c | ||
| iio_utils.c | ||
| iio_utils.h | ||
| lsiio.c | ||
| Makefile | ||