gnuplot/gnuplot-4.6.0-fix-format-errors.dif
Dr. Werner Fink c28f2a38b4 Accepting request 110070 from home:NicoK:branches:Publishing
update to 4.6.0 (2nd try)
sorry, changes from bnc746299 were lost since I re-used my 4.5.0 patch instead of creating a clean 4.6.0 one - integrated them now (don't have time for a clean patch right now but if there was no other change, this should be fine);
what about french help messages? - I didn't change anything there. If something needs to be fixed there, then this was either an issue before or is a bug of 4.6.0

OBS-URL: https://build.opensuse.org/request/show/110070
OBS-URL: https://build.opensuse.org/package/show/Publishing/gnuplot?expand=0&rev=31
2012-04-02 14:02:56 +00:00

31 lines
1.0 KiB
Plaintext

diff -U 3 -H -d -r -N -x .git -x .svn -- gnuplot-4.6.0/src/gplt_x11.c gnuplot-4.6.0.formaterrors/src/gplt_x11.c
--- gnuplot-4.6.0/src/gplt_x11.c 2011-12-28 23:00:37.000000000 +0100
+++ gnuplot-4.6.0.formaterrors/src/gplt_x11.c 2012-03-15 12:17:24.311767033 +0100
@@ -2897,22 +2897,22 @@
case PseudoColor:
fprintf(stderr, ERROR_NOTICE("PseudoColor"));
- fprintf(stderr, display_error_text_after);
+ fprintf(stderr, "%s", display_error_text_after);
break;
case GrayScale:
fprintf(stderr, ERROR_NOTICE("GrayScale"));
- fprintf(stderr, display_error_text_after);
+ fprintf(stderr, "%s", display_error_text_after);
break;
case StaticColor:
fprintf(stderr, ERROR_NOTICE("StaticColor"));
- fprintf(stderr, display_error_text_after);
+ fprintf(stderr, "%s", display_error_text_after);
break;
case StaticGray:
fprintf(stderr, ERROR_NOTICE("StaticGray"));
- fprintf(stderr, display_error_text_after);
+ fprintf(stderr, "%s", display_error_text_after);
break;
case DirectColor: