From e8a00c3a91072e9d00b877f70266735375b9bdbf Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 20 May 2009 13:44:59 -0400 Subject: Fix blank network device descriptions in the loader. (#501757) This appears to be the source of the problem, and fixes the issue in brief testing. It is completely baffling to me why this would only manifest now; it's not like this code has changed since it was added. --- isys/devices.c | 1 + 1 file changed, 1 insertion(+) (limited to 'isys') 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--) -- cgit