summaryrefslogtreecommitdiff
path: root/udevstart.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevstart.c')
-rw-r--r--udevstart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udevstart.c b/udevstart.c
index 9c1d69503d..ba63745620 100644
--- a/udevstart.c
+++ b/udevstart.c
@@ -211,7 +211,7 @@ static void udev_scan_class(void)
dir2 = opendir(dirname);
if (dir2 != NULL) {
for (dent2 = readdir(dir2); dent2 != NULL; dent2 = readdir(dir2)) {
- char dirname2[MAX_PATHLEN-1];
+ char dirname2[MAX_PATHLEN];
DIR *dir3;
struct dirent *dent3;