summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/disk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdk-stage1/disk.c b/mdk-stage1/disk.c
index d6aa1596d..23f865380 100644
--- a/mdk-stage1/disk.c
+++ b/mdk-stage1/disk.c
@@ -81,6 +81,7 @@ static enum return_type try_with_device(char *dev_name)
}
while (fgets(buf, sizeof(buf), f)) {
+ bzero(name, sizeof(name));
sscanf(buf, " %d %d %d %s", &major, &minor, &blocks, name);
if ((strstr(name, dev_name) == name) && (blocks > 1) && (name[strlen(dev_name)] != '\0')) {
parts[i] = strdup(name);