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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80174

View File

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