summaryrefslogtreecommitdiff
path: root/src/lib/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/string.c')
-rw-r--r--src/lib/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/string.c b/src/lib/string.c
index b1996ff103..a7f8074fc7 100644
--- a/src/lib/string.c
+++ b/src/lib/string.c
@@ -115,7 +115,7 @@ int strcmp(const char *s1, const char *s2)
int strncmp(const char *s1, const char *s2, size_t maxlen)
{
- int i;
+ size_t i;
for (i = 0; i < maxlen; i++) {
if ((s1[i] != s2[i]) || (s1[i] == '\0'))