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:
Robert Watson 2005-01-29 13:34:22 +00:00
parent debb2f87b6
commit dc66c5fe6f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140960

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