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/94cf83d1cb26
branches: trunk
changeset: 813099:94cf83d1cb26
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 8302605c3e92 -r 94cf83d1cb26 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