Because the argument to strvalid() is a size_t, use a size_t to iterate
over the array. Submitted by: stefanf
This commit is contained in:
parent
5216b023b3
commit
c8e4aa45df
@ -42,7 +42,7 @@ __FBSDID("$FreeBSD$");
|
||||
int
|
||||
strvalid(const char *buffer, size_t bufferlen)
|
||||
{
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
/* Must be NUL-terminated. */
|
||||
for (i = 0; i < bufferlen; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user