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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/string.c b/src/lib/string.c
index d23ed1f7e5..7553295a7d 100644
--- a/src/lib/string.c
+++ b/src/lib/string.c
@@ -71,7 +71,7 @@ char *strrchr(const char *s, int c)
return p;
}
-char *strncpy(char *to, const char *from, int count)
+char *strncpy(char *to, const char *from, size_t count)
{
char *ret = to;
char data;
@@ -113,7 +113,7 @@ int strcmp(const char *s1, const char *s2)
return r;
}
-int strncmp(const char *s1, const char *s2, int maxlen)
+int strncmp(const char *s1, const char *s2, size_t maxlen)
{
int i;