mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-23 16:01:42 +00:00
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
debb2f87b6
commit
dc66c5fe6f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140960
@ -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