* tests/test-strncat.c (main): Change y to a valid string.
* tests/test-wcsncat.c (main): Change y to a valid wide string.
+2024-11-06 Bruno Haible <bruno@clisp.org>
+
+ strncat, wcsncat tests: Fix test.
+ * tests/test-strncat.c (main): Change y to a valid string.
+ * tests/test-wcsncat.c (main): Change y to a valid wide string.
+
2024-11-05 Paul Eggert <eggert@cs.ucla.edu>
eealloc: deprecate
#endif
{
- char y[1];
+ char y[2] = { 'x', '\0' };
value = (strncat (y, NULL, 0) == y);
ASSERT (value);
}
#endif
{
- wchar_t y[1];
+ wchar_t y[2] = { L'x', 0 };
value = (wcsncat (y, NULL, 0) == y);
ASSERT (value);
}