Reported by Po Lu <luangruo@yahoo.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-11/msg00217.html>.
* lib/strnlen.c (strnlen): Revert last change.
+2025-11-20 Bruno Haible <bruno@clisp.org>
+
+ strnlen: Fix compilation error (regression 2025-11-18).
+ Reported by Po Lu <luangruo@yahoo.com> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2025-11/msg00217.html>.
+ * lib/strnlen.c (strnlen): Revert last change.
+
2025-11-19 Bruno Haible <bruno@clisp.org>
nstrftime, fprintftime: Reduce link requirements on macOS.
{
/* Do not use memchr, because on some platforms memchr has
undefined behavior if MAXLEN exceeds the number of bytes in S. */
- for (size_t i = 0; i < maxlen && s[i]; i++)
+ size_t i;
+ for (i = 0; i < maxlen && s[i]; i++)
continue;
return i;
}