diff options
Diffstat (limited to 'isys')
-rw-r--r-- | isys/devices.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/isys/devices.c b/isys/devices.c index e312a43e9..1efff622b 100644 --- a/isys/devices.c +++ b/isys/devices.c @@ -178,6 +178,7 @@ storagedone: snprintf(path, 64, "/sys/class/net/%s/address", ent->d_name); fd = open(path, O_RDONLY); if (fd != -1) { + memset(buf, '\0', 64); if (read(fd, buf, 64) > 0) { int i; for (i = (strlen(buf)-1); isspace(buf[i]); i--) |