summaryrefslogtreecommitdiff
path: root/src/kernel/lib/std.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/lib/std.cpp')
-rw-r--r--src/kernel/lib/std.cpp2
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) {