forked from pool/gnuplot
41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
--- src/gplt_x11.c
|
|
+++ src/gplt_x11.c 2009-05-09 13:50:34.000000000 +0200
|
|
@@ -2903,22 +2903,22 @@ exec_cmd(plot_struct *plot, char *comman
|
|
|
|
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
|
|
+++ term/post.trm 2009-05-09 13:50:34.000000000 +0200
|
|
@@ -1748,7 +1748,7 @@ gnudict begin\ngsave\n\
|
|
(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));
|