Get rid of a compile-time warning by casting to (size_t).

MFC after:	1 week
This commit is contained in:
Garance A Drosehn 2001-07-23 01:19:59 +00:00
parent a33973d41a
commit 79c96a6ccd

View File

@ -778,7 +778,7 @@ putmsg(struct printer *pp, int argc, char **argv)
cp1 = buf; cp1 = buf;
while (--argc >= 0) { while (--argc >= 0) {
cp2 = *argv++; cp2 = *argv++;
while ((cp1 - buf) < sizeof(buf) && (*cp1++ = *cp2++)) while ((size_t)(cp1 - buf) < sizeof(buf) && (*cp1++ = *cp2++))
; ;
cp1[-1] = ' '; cp1[-1] = ' ';
} }