Paul Eggert <egg...@cs.ucla.edu> writes: > On 6/27/24 02:37, Po Lu wrote: > >> Btw, doesn't this also mean that lib/strnlen.c (in Emacs, at least) is >> incorrect? > > Thanks for pointing that out. I installed the attached into Gnulib and > propagated it into Emacs master. Although I don't know of any > practical, supported platform where this matters, it's better to be > safer.
I think there should be a trivial test for a functional strnlen in strnlen.m4, since it would be terrible to duplicate what ought to be the responsibility of Gnulib in Emacs's configure.ac.