From 1466993ef3dfe3cf8cb79334b7282cb6b6165cb1 Mon Sep 17 00:00:00 2001 From: mycroft Date: Fri, 29 Jul 1994 02:31:50 +0000 Subject: [PATCH] Fix oversight in last patch. --- sbin/fsck/dir.c | 4 ++-- sbin/fsck_ffs/dir.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/fsck/dir.c b/sbin/fsck/dir.c index e8312343fcbe..288a2e909202 100644 --- a/sbin/fsck/dir.c +++ b/sbin/fsck/dir.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)dir.c 8.1 (Berkeley) 6/5/93";*/ -static char *rcsid = "$Id: dir.c,v 1.8 1994/07/28 00:25:17 mycroft Exp $"; +static char *rcsid = "$Id: dir.c,v 1.9 1994/07/29 02:31:50 mycroft Exp $"; #endif /* not lint */ #include @@ -342,7 +342,7 @@ mkentry(idesc) # endif } dirp->d_reclen = newent.d_reclen; - bcopy(idesc->id_name, dirp->d_name, (size_t)dirp->d_namlen + 1); + bcopy(idesc->id_name, dirp->d_name, (size_t)newent.d_namlen + 1); return (ALTERED|STOP); } diff --git a/sbin/fsck_ffs/dir.c b/sbin/fsck_ffs/dir.c index e8312343fcbe..288a2e909202 100644 --- a/sbin/fsck_ffs/dir.c +++ b/sbin/fsck_ffs/dir.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)dir.c 8.1 (Berkeley) 6/5/93";*/ -static char *rcsid = "$Id: dir.c,v 1.8 1994/07/28 00:25:17 mycroft Exp $"; +static char *rcsid = "$Id: dir.c,v 1.9 1994/07/29 02:31:50 mycroft Exp $"; #endif /* not lint */ #include @@ -342,7 +342,7 @@ mkentry(idesc) # endif } dirp->d_reclen = newent.d_reclen; - bcopy(idesc->id_name, dirp->d_name, (size_t)dirp->d_namlen + 1); + bcopy(idesc->id_name, dirp->d_name, (size_t)newent.d_namlen + 1); return (ALTERED|STOP); }