From 150dd5f860a5f22a8c3bcc1bf3a1f2e36dcf6fd8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 24 Feb 2015 16:58:33 +0100 Subject: Change VFS a bit : the root directory of a fs is now a pointer. Fix tests. --- src/common/libc/string.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/libc/string.c') diff --git a/src/common/libc/string.c b/src/common/libc/string.c index e5f7a53..82c290f 100644 --- a/src/common/libc/string.c +++ b/src/common/libc/string.c @@ -64,6 +64,7 @@ int strncmp(const char *s1, const char *s2, size_t n) { s2++; i++; } + if (i == n) return 0; return (*(unsigned char*)s1 - *(unsigned char*)s2); } -- cgit v1.2.3