aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index aef84ac45..f6d4d8df0 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -197,6 +197,7 @@ static void find_dev(char *path)
if (entry->d_type == DT_DIR) {
snprintf(path+len, PATH_MAX-len, "/%s", entry->d_name);
find_dev(path);
+ path[len] = 0;
}
/* If there's a dev entry, mknod it */