diff options
-rw-r--r-- | usr/src/cmd/cpio/cpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/cpio/cpio.c b/usr/src/cmd/cpio/cpio.c index 8ae8c4a85a..1816bddeb3 100644 --- a/usr/src/cmd/cpio/cpio.c +++ b/usr/src/cmd/cpio/cpio.c @@ -4679,7 +4679,7 @@ gethdr(void) (void) strcpy(&fullnam[0], &prebuf[0]); j = 0; fullnam[k++] = '/'; - while ((j < NAMSIZ) && (&nambuf[j] != + while ((j < NAMSIZ) && (nambuf[j] != '\0')) { fullnam[k] = nambuf[j]; k++; j++; |