This was noticed with GCC 14.
* lib/xmemcoll.c: Always use format arguments.
* lib/xprintf.c: Likewise.
+2025-01-17 Pádraig Brady <P@draigBrady.com>
+
+ Avoid -Wformat=security failures with --disable-nls
+ This was noticed with GCC 14.
+ * lib/xmemcoll.c: Always use format arguments.
+ * lib/xprintf.c: Likewise.
+
2025-01-16 Paul Eggert <eggert@cs.ucla.edu>
crc-x86_64: fix unaligned access
char const *s1, size_t s1len,
char const *s2, size_t s2len)
{
- error (0, collation_errno, _("string comparison failed"));
- error (0, 0, _("Set LC_ALL='C' to work around the problem."));
+ error (0, collation_errno, "%s", _("string comparison failed"));
+ error (0, 0, "%s", _("Set LC_ALL='C' to work around the problem."));
error (exit_failure, 0,
_("The strings compared were %s and %s."),
quotearg_n_style_mem (0, locale_quoting_style, s1, s1len),
{
off64_t retval = vzprintf (format, args);
if (retval < 0 && ! ferror (stdout))
- error (exit_failure, errno, _("cannot perform formatted output"));
+ error (exit_failure, errno, "%s", _("cannot perform formatted output"));
return retval;
}
{
off64_t retval = vfzprintf (stream, format, args);
if (retval < 0 && ! ferror (stream))
- error (exit_failure, errno, _("cannot perform formatted output"));
+ error (exit_failure, errno, "%s", _("cannot perform formatted output"));
return retval;
}