summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-07-16 01:19:18 +0300
committerHans Rosenfeld <hans.rosenfeld@joyent.com>2018-04-23 18:15:39 +0200
commit2ae4c13b79c29604a25f0cedb59f2acff223bd26 (patch)
tree25e41ab76ebd4cf34f7f18063c3aa4acc11e849b
parentdf0d8faa63dc661707485b4e12027d2a3b09e107 (diff)
downloadillumos-joyent-2ae4c13b79c29604a25f0cedb59f2acff223bd26.tar.gz
9401 cpio: comparison between pointer and zero character constant
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Reviewed by: C Fraire <cfraire@me.com> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
-rw-r--r--usr/src/cmd/cpio/cpio.c2
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++;