summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2002-10-09 13:20:19 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2002-10-09 13:20:19 +0000
commitfd4133b4a416bf0cd502b3327893cb26b9ea94b8 (patch)
tree7d63c9485b4bf09dba71271d0f8d2fb6a82593ec
parent39867232c59373e94f4717ff7a46e985142f50b8 (diff)
downloaddrakx-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.c2
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);