diff options
Diffstat (limited to 'src/user/lib/libc/std/stdlib.c')
-rw-r--r-- | src/user/lib/libc/std/stdlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/user/lib/libc/std/stdlib.c b/src/user/lib/libc/std/stdlib.c index 15f9ddc..10bce0a 100644 --- a/src/user/lib/libc/std/stdlib.c +++ b/src/user/lib/libc/std/stdlib.c @@ -33,6 +33,7 @@ int atoi(char *s) { while (*s >= '0' && *s <= '9') { r *= 10; r += (*s) - '0'; + s++; }; return r; } |