diff --git a/kernel/src/utils/string.c b/kernel/src/utils/string.c index 3a0a113..96cac0a 100644 --- a/kernel/src/utils/string.c +++ b/kernel/src/utils/string.c @@ -35,7 +35,7 @@ bool string_compare(string_t a, string_t b) { uint32_t string_find_next(string_t string, char chr) { uint32_t n = 0; - while(*string != chr) { + while(*string != chr && *string != '\0') { string++; n++; }