Added one null comparison in string compare...
This commit is contained in:
parent
1887bae82a
commit
b216920600
@ -523,7 +523,11 @@ int string_compare (char * string_0, char * string_1) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (string_0 [i] != string_1 [i]) {
|
||||||
|
return (false);
|
||||||
|
} else {
|
||||||
return (true);
|
return (true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char * string_copy (char * string_0, char * string_1) {
|
char * string_copy (char * string_0, char * string_1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user