Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib Don't pl...
details: https://anonhg.NetBSD.org/src/rev/b2e58396626a
branches: trunk
changeset: 342957:b2e58396626a
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Jan 16 01:05:40 2016 +0000
description:
Don't play games with format strings.
diffstat:
external/gpl2/gettext/dist/gettext-tools/gnulib-lib/error.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r f6bd7d062327 -r b2e58396626a external/gpl2/gettext/dist/gettext-tools/gnulib-lib/error.c
--- a/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/error.c Fri Jan 15 20:34:35 2016 +0000
+++ b/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/error.c Sat Jan 16 01:05:40 2016 +0000
@@ -314,8 +314,10 @@
__fxprintf (NULL, file_name != NULL ? "%s:%d: " : " ",
file_name, line_number);
#else
- fprintf (stderr, file_name != NULL ? "%s:%d: " : " ",
- file_name, line_number);
+ if (file_name != NULL)
+ fprintf (stderr, "%s:%d: ", file_name, line_number);
+ else
+ fputc(' ', stderr);
#endif
va_start (args, message);
Home |
Main Index |
Thread Index |
Old Index