diff options
Diffstat (limited to 'mdk-stage1/disk.c')
-rw-r--r-- | mdk-stage1/disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/disk.c b/mdk-stage1/disk.c index a9a31d3d7..375727fdf 100644 --- a/mdk-stage1/disk.c +++ b/mdk-stage1/disk.c @@ -176,7 +176,7 @@ static enum return_type try_with_device(char *dev_name) } while (fgets(buf, sizeof(buf), f)) { - bzero(name, sizeof(name)); + memset(name, 0, 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')) { const char * partition_type = detect_partition_type(name); |