projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58cf292
)
iio.c: Replace sprintf with snprintf
author
Brendan Le Foll
<brendan.le.foll@intel.com>
Mon, 21 Dec 2015 15:48:02 +0000
(15:48 +0000)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Mon, 21 Dec 2015 15:48:02 +0000
(15:48 +0000)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/iio/iio.c
patch
|
blob
|
history
diff --git
a/src/iio/iio.c
b/src/iio/iio.c
index
f15a337
..
1d02983
100644
(file)
--- a/
src/iio/iio.c
+++ b/
src/iio/iio.c
@@
-441,7
+441,7
@@
mraa_iio_event_poll(mraa_iio_context dev, struct iio_event_data* data)
int event_fd;
int fd;
- s
printf(bu
, IIO_SLASH_DEV "%d", dev->num);
+ s
nprintf(bu, MAX_SIZE
, IIO_SLASH_DEV "%d", dev->num);
fd = open(bu, 0);
ret = ioctl(fd, IIO_GET_EVENT_FD_IOCTL, &event_fd);
close(fd);