From 910c122c8ddb9e474f1faec196d6f97202cba444 Mon Sep 17 00:00:00 2001 From: klemek Date: Sat, 16 May 2026 15:36:09 +0200 Subject: [PATCH] fix: unsigned overflow in string_trim --- src/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.c b/src/string.c index 921c80f..e63259e 100644 --- a/src/string.c +++ b/src/string.c @@ -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; }