summaryrefslogtreecommitdiff
path: root/sbin/fsck_ext2fs/dir.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-04-17 06:48:48 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-04-17 06:48:48 +0000
commit4cd6648a36f1b4b79f494afafabd8d0f46ff8163 (patch)
treeed5cfcc9d37b00e36c4759cfc1fb2b35c64b21c2 /sbin/fsck_ext2fs/dir.c
parent3a57158f9512bec738ab0e68dbd1c2093b989cc2 (diff)
strings. mostly from deraadt@, some from tdeval@ and myself
Diffstat (limited to 'sbin/fsck_ext2fs/dir.c')
-rw-r--r--sbin/fsck_ext2fs/dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck_ext2fs/dir.c b/sbin/fsck_ext2fs/dir.c
index b1c23d59e73..9fc3dabf219 100644
--- a/sbin/fsck_ext2fs/dir.c
+++ b/sbin/fsck_ext2fs/dir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dir.c,v 1.8 2002/06/09 08:13:05 todd Exp $ */
+/* $OpenBSD: dir.c,v 1.9 2003/04/17 06:48:47 tedu Exp $ */
/* $NetBSD: dir.c,v 1.5 2000/01/28 16:01:46 bouyer Exp $ */
/*
@@ -272,7 +272,7 @@ fileerror(cwd, ino, errmesg)
pwarn("%s ", errmesg);
pinode(ino);
printf("\n");
- getpathname(pathbuf, cwd, ino);
+ getpathname(pathbuf, sizeof pathbuf, cwd, ino);
if ((ino < EXT2_FIRSTINO && ino != EXT2_ROOTINO) || ino > maxino) {
pfatal("NAME=%s\n", pathbuf);
return;
@@ -521,7 +521,7 @@ makeentry(parent, ino, name)
}
if ((ckinode(dp, &idesc) & ALTERED) != 0)
return (1);
- getpathname(pathbuf, parent, parent);
+ getpathname(pathbuf, sizeof pathbuf, parent, parent);
dp = ginode(parent);
if (expanddir(dp, pathbuf) == 0)
return (0);