diff -Naur gnuplot-4.2.4/src/gplt_x11.c gnuplot-4.2.4-fix-format-errors/src/gplt_x11.c --- gnuplot-4.2.4/src/gplt_x11.c 2008-06-22 19:08:49.000000000 -0400 +++ gnuplot-4.2.4-fix-format-errors/src/gplt_x11.c 2009-02-26 04:31:41.000000000 -0500 @@ -2880,22 +2880,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: diff -Naur gnuplot-4.2.4/term/post.trm gnuplot-4.2.4-fix-format-errors/term/post.trm --- gnuplot-4.2.4/term/post.trm 2008-08-09 20:36:16.000000000 -0400 +++ gnuplot-4.2.4-fix-format-errors/term/post.trm 2009-02-26 04:28:25.000000000 -0500 @@ -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));