diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2002-10-09 13:20:19 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2002-10-09 13:20:19 +0000 |
commit | fd4133b4a416bf0cd502b3327893cb26b9ea94b8 (patch) | |
tree | 7d63c9485b4bf09dba71271d0f8d2fb6a82593ec | |
parent | 39867232c59373e94f4717ff7a46e985142f50b8 (diff) | |
download | drakx-fd4133b4a416bf0cd502b3327893cb26b9ea94b8.tar drakx-fd4133b4a416bf0cd502b3327893cb26b9ea94b8.tar.gz drakx-fd4133b4a416bf0cd502b3327893cb26b9ea94b8.tar.bz2 drakx-fd4133b4a416bf0cd502b3327893cb26b9ea94b8.tar.xz drakx-fd4133b4a416bf0cd502b3327893cb26b9ea94b8.zip |
Use standard memset() instead of BSD-ish bzero().
-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); |