summaryrefslogtreecommitdiff
path: root/lib/mbsnlen.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-10-20 15:22:21 +0200
committerJörg Frings-Fürst <debian@jff.email>2024-10-20 15:22:21 +0200
commit1d8b9e17ea13630aec475484da09ebba0366f7c8 (patch)
tree0c801f68561bfb0930a4ade80d7ca3a7940887ab /lib/mbsnlen.c
parent84e26c587987e8484d55db4165f188b40c09e94b (diff)
parent630f99f29bd31a76d8d24da2975a045452c763ef (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'lib/mbsnlen.c')
-rw-r--r--lib/mbsnlen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mbsnlen.c b/lib/mbsnlen.c
index baadf163..1ce79bfb 100644
--- a/lib/mbsnlen.c
+++ b/lib/mbsnlen.c
@@ -40,7 +40,7 @@ mbsnlen (const char *string, size_t len)
const char *string_end = string + len;
#if GNULIB_MCEL_PREFER
- for (; *string; string += mcel_scan (string, string_end).len)
+ for (; string < string_end; string += mcel_scan (string, string_end).len)
count++;
#else
mbif_state_t state;