* lib/mbsnlen.c (mbsnlen): Fix bug in GNULIB_MCEL_PREFER implementation.
+2024-06-18 Bruno Haible <bruno@clisp.org>
+
+ mbsnlen: Fix bug (regression 2023-09-26).
+ * lib/mbsnlen.c (mbsnlen): Fix bug in GNULIB_MCEL_PREFER implementation.
+
2024-06-11 Bruno Haible <bruno@clisp.org>
test-framework-sh: Fix 'returns_' to not turn off tracing permanently.
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;