diff options
| author | Warner Losh <imp@FreeBSD.org> | 1998-06-09 05:02:29 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 1998-06-09 05:02:29 +0000 |
| commit | d944ccabfcb5624c1df98a184f67f72045d567cf (patch) | |
| tree | c780c947a5dbf5a9af84cd4d44b4c6cb0dd19527 | |
| parent | f520b5e8947bfc46f0a9dae1a2a5d37ffb81ec6d (diff) | |
Notes
| -rw-r--r-- | usr.sbin/mtree/compare.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c index 72b00b957bac..760bf640fc0c 100644 --- a/usr.sbin/mtree/compare.c +++ b/usr.sbin/mtree/compare.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: compare.c,v 1.8 1997/10/01 06:30:00 charnier Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -288,7 +288,7 @@ rlink(name) static char lbuf[MAXPATHLEN]; register int len; - if ((len = readlink(name, lbuf, sizeof(lbuf))) == -1) + if ((len = readlink(name, lbuf, sizeof(lbuf) - 1)) == -1) err(1, "line %d: %s", lineno, name); lbuf[len] = '\0'; return (lbuf); |
