Commits

Ondřej Surý  committed cced820

Fix error: format not a string literal and no format arguments [-Werror=format-security] (From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643422)

  • Participants
  • Parent commits 57ad70b

Comments (0)

Files changed (1)

File src/gdtestft.c

 	err =
 	    gdImageStringFT ((gdImagePtr) NULL, &brect[0], 0, f, sz, angle, 0, 0, s);
 	if (err) {
-		fprintf (stderr, err);
+		fprintf (stderr, "%s\n", err);
 		return 1;
 	}
 
 	/* With antialiasing (positive color value) */
 	err = gdImageStringFT (im, NULL, blue, f, sz, angle, x, y, s);
 	if (err) {
-		fprintf (stderr, err);
+		fprintf (stderr, "%s\n", err);
 		return 1;
 	}
 	/* Without antialiasing (negative color value) */
 	err = gdImageStringFT (im, NULL, -blue, f, sz, angle, sx + x, y, s);
 	if (err) {
-		fprintf (stderr, err);
+		fprintf (stderr, "%s\n", err);
 		return 1;
 	}
 	/* With antialiasing, and 50% alpha blending (truecolor only) */
 	err = gdImageStringFT (im, NULL, blueAlpha, f, sz, angle, sx * 2 + x, y, s);
 	if (err) {
-		fprintf (stderr, err);
+		fprintf (stderr, "%s\n", err);
 		return 1;
 	}
 	/* TBB: Write img to test/fttest.jpg or test/fttest.png */