SHA256
1
0
forked from pool/gnuplot
gnuplot/gnuplot-4.2.5-fix-format-errors.dif

41 lines
1.4 KiB
Plaintext

--- src/gplt_x11.c 2009-01-14 19:42:02.000000000 +0100
+++ src/gplt_x11.c 2009-05-09 13:50:34.000000000 +0200
@@ -2889,22 +2889,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:
--- term/post.trm 2009-03-03 03:44:07.000000000 +0100
+++ term/post.trm 2009-05-09 13:50:34.000000000 +0200
@@ -1665,7 +1665,7 @@
(ps_params->psformat == PSTERM_EPS ? 0.5 : 1.0)/PS_SC);
if (ps_params->psformat == PSTERM_LANDSCAPE)
fprintf(gppsfile,"90 rotate\n0 %d translate\n", -(int)(term->ymax));
- fprintf(gppsfile, psg1);
+ fprintf(gppsfile, "%s", psg1);
if (ps_common_uses_fonts)
fprintf(gppsfile, "(%s) findfont %d scalefont setfont\n",
ps_params->font, (t->v_char));