From 9004213b4422e7a43c8ec8aac99d4ecc92553f20 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 12 Feb 2015 22:35:07 +0100 Subject: Begin implementation of nullfs. --- src/common/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/string.c') diff --git a/src/common/string.c b/src/common/string.c index b50356a..f6c27b4 100644 --- a/src/common/string.c +++ b/src/common/string.c @@ -57,7 +57,7 @@ int strcmp(const char *s1, const char *s2) { return (*(unsigned char*)s1 - *(unsigned char*)s2); } -int strcmp(const char *s1, const char *s2, size_t n) { +int strncmp(const char *s1, const char *s2, size_t n) { size_t i = 0; while ((*s1) && (*s1 == *s2) && i != n) { s1++; -- cgit v1.2.3