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:
rwatson 2005-01-29 13:34:22 +00:00
parent 5216b023b3
commit c8e4aa45df

View File

@ -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++)