Module Name:    src
Committed By:   dholland
Date:           Sun Jun 23 04:14:28 UTC 2013

Modified Files:
        src/sbin/newfs: mkfs.c

Log Message:
Revert accidental commit of the change for PR 47911; got rolled into
other stuff by mistake.


To generate a diff of this commit:
cvs rdiff -u -r1.117 -r1.118 src/sbin/newfs/mkfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/newfs/mkfs.c
diff -u src/sbin/newfs/mkfs.c:1.117 src/sbin/newfs/mkfs.c:1.118
--- src/sbin/newfs/mkfs.c:1.117	Sun Jun 23 02:06:05 2013
+++ src/sbin/newfs/mkfs.c	Sun Jun 23 04:14:28 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: mkfs.c,v 1.117 2013/06/23 02:06:05 dholland Exp $	*/
+/*	$NetBSD: mkfs.c,v 1.118 2013/06/23 04:14:28 dholland Exp $	*/
 
 /*
  * Copyright (c) 1980, 1989, 1993
@@ -73,7 +73,7 @@
 #if 0
 static char sccsid[] = "@(#)mkfs.c	8.11 (Berkeley) 5/3/95";
 #else
-__RCSID("$NetBSD: mkfs.c,v 1.117 2013/06/23 02:06:05 dholland Exp $");
+__RCSID("$NetBSD: mkfs.c,v 1.118 2013/06/23 04:14:28 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -1257,7 +1257,7 @@ makedir(struct direct *protodir, int ent
 	if (isappleufs)
 		dirblksiz = APPLEUFS_DIRBLKSIZ;
 
-	memset(buf, 0, dirblksiz);
+	memset(buf, 0, UFS_DIRBLKSIZ);
 	spcleft = dirblksiz;
 	for (cp = buf, i = 0; i < entries - 1; i++) {
 		protodir[i].d_reclen = UFS_DIRSIZ(Oflag == 0, &protodir[i], 0);

Reply via email to