Fix a compile-time warning by declaring 'len' as size_t instead of int.
MFC after: 4 days
This commit is contained in:
parent
ce89013afd
commit
9e75a09e74
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84696
@ -614,7 +614,7 @@ card(int c, const char *p2)
|
||||
{
|
||||
char buf[BUFSIZ];
|
||||
register char *p1 = buf;
|
||||
register int len = 2;
|
||||
size_t len = 2;
|
||||
|
||||
*p1++ = c;
|
||||
while ((c = *p2++) != '\0' && len < sizeof(buf)) {
|
||||
|
Loading…
Reference in New Issue
Block a user