fix: unsigned overflow in string_trim

This commit is contained in:
2026-05-16 15:36:09 +02:00
parent fbd73ebf4c
commit 910c122c8d
+1 -1
View File
@@ -15,7 +15,7 @@ unsigned int string_trim(char *str) {
start = 0;
end = strnlen(str, STR_LEN) - 1;
if (end == 0) {
if (end <= 0) {
return 0;
}