diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-24 16:58:33 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-24 16:58:33 +0100 |
commit | 150dd5f860a5f22a8c3bcc1bf3a1f2e36dcf6fd8 (patch) | |
tree | e92a633a780104617483fd9fd379238299affabd /src/common/libc/string.c | |
parent | fa8a840c6dfc9eb737ef5d777f066b05eb8d9544 (diff) | |
download | kogata-150dd5f860a5f22a8c3bcc1bf3a1f2e36dcf6fd8.tar.gz kogata-150dd5f860a5f22a8c3bcc1bf3a1f2e36dcf6fd8.zip |
Change VFS a bit : the root directory of a fs is now a pointer. Fix tests.
Diffstat (limited to 'src/common/libc/string.c')
-rw-r--r-- | src/common/libc/string.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |