Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/resize_ffs fix pasto



details:   https://anonhg.NetBSD.org/src/rev/825132fe3b89
branches:  trunk
changeset: 344222:825132fe3b89
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 17 01:41:54 2016 +0000

description:
fix pasto

diffstat:

 sbin/resize_ffs/resize_ffs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 49eeed5799e8 -r 825132fe3b89 sbin/resize_ffs/resize_ffs.c
--- a/sbin/resize_ffs/resize_ffs.c      Thu Mar 17 00:56:05 2016 +0000
+++ b/sbin/resize_ffs/resize_ffs.c      Thu Mar 17 01:41:54 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: resize_ffs.c,v 1.45 2016/03/17 00:54:53 christos Exp $ */
+/*     $NetBSD: resize_ffs.c,v 1.46 2016/03/17 01:41:54 christos Exp $ */
 /* From sources sent on February 17, 2003 */
 /*-
  * As its sole author, I explicitly place this code in the public
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: resize_ffs.c,v 1.45 2016/03/17 00:54:53 christos Exp $");
+__RCSID("$NetBSD: resize_ffs.c,v 1.46 2016/03/17 01:41:54 christos Exp $");
 
 #include <sys/disk.h>
 #include <sys/disklabel.h>
@@ -1274,7 +1274,7 @@
                        } else {
                                if (needswap) {
                                        ffs_dinode1_swap(&(dp1[i]), &(dp1[i]));
-                                       for (j = 0; j < UFS_NIADDR; j++)
+                                       for (j = 0; j < UFS_NDADDR; j++)
                                                dp1[i].di_db[j] =
                                                    bswap32(dp1[i].di_db[j]);
                                        for (j = 0; j < UFS_NIADDR; j++)



Home | Main Index | Thread Index | Old Index