diff options
-rw-r--r-- | initd/mkdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/initd/mkdev.c b/initd/mkdev.c index 44101aa..1c9c97a 100644 --- a/initd/mkdev.c +++ b/initd/mkdev.c @@ -86,7 +86,7 @@ static void find_devs(bool block) if (len <= 0) continue; - buf[len] = 0; + buf[sizeof(buf) - 1] = '\0'; if (!find_pattern(buf)) continue; |