fix (kernel): fixed a potential string overflow in 'string_find_next'

This commit is contained in:
antifallobst 2023-02-24 01:00:06 +01:00
parent 1e8dc6d1db
commit eac9754a4d
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
}