Fix oversight in last patch.

This commit is contained in:
mycroft 1994-07-29 02:31:50 +00:00
parent 1d2563f804
commit 1466993ef3
2 changed files with 4 additions and 4 deletions

View File

@ -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 <sys/param.h>
@ -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);
}

View File

@ -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 <sys/param.h>
@ -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);
}