diff options
| author | Warner Losh <imp@FreeBSD.org> | 1998-06-09 03:38:43 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 1998-06-09 03:38:43 +0000 |
| commit | e00e592a7a394943de7d48cdfc81458a80e9c512 (patch) | |
| tree | 6bc1e12d122c1b6c7d7b436b0c25c0ac0924845d /bin/pax/ftree.c | |
| parent | 39b14624c5dbe9f42e8fba5e35e76a38cbb9cf87 (diff) | |
Notes
Diffstat (limited to 'bin/pax/ftree.c')
| -rw-r--r-- | bin/pax/ftree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/pax/ftree.c b/bin/pax/ftree.c index 8a264aa3662e4..b9f32e335255e 100644 --- a/bin/pax/ftree.c +++ b/bin/pax/ftree.c @@ -40,7 +40,7 @@ static char sccsid[] = "@(#)ftree.c 8.2 (Berkeley) 4/18/94"; #endif static const char rcsid[] = - "$Id$"; + "$Id: ftree.c,v 1.10 1998/05/15 06:27:42 charnier Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -508,14 +508,14 @@ next_file(arcn) * have to read the symlink path from the file */ if ((cnt = readlink(ftent->fts_path, arcn->ln_name, - PAXPATHLEN)) < 0) { + PAXPATHLEN - 1)) < 0) { sys_warn(1, errno, "Unable to read symlink %s", ftent->fts_path); continue; } /* * set link name length, watch out readlink does not - * allways null terminate the link path + * allways NUL terminate the link path */ arcn->ln_name[cnt] = '\0'; arcn->ln_nlen = cnt; |
