diff options
Diffstat (limited to 'src/kernel/lib')
-rw-r--r-- | src/kernel/lib/std.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/lib/std.cpp b/src/kernel/lib/std.cpp index 4407f55..c25f59c 100644 --- a/src/kernel/lib/std.cpp +++ b/src/kernel/lib/std.cpp @@ -16,7 +16,7 @@ void abort() { int strlen(const char *str) { int i = 0; while (str[i++]); - return i; + return i-1; } char *strchr(const char *str, char c) { |