diff options
Diffstat (limited to 'lib/mbsnlen.c')
-rw-r--r-- | lib/mbsnlen.c | 2 |
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; |