From 2ae4c13b79c29604a25f0cedb59f2acff223bd26 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sun, 16 Jul 2017 01:19:18 +0300 Subject: 9401 cpio: comparison between pointer and zero character constant Reviewed by: Andy Fiddaman Reviewed by: C Fraire Approved by: Hans Rosenfeld --- usr/src/cmd/cpio/cpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- cgit v1.2.3