Commits

Ondřej Surý committed b53a6c0

Fix fprint string formatting (From: http://bugs.debian.org/643422)

Comments (0)

Files changed (1)

     gdImageStringFT ((gdImagePtr) NULL, &brect[0], 0, f, sz, angle, 0, 0, s);
   if (err)
     {
-      fprintf (stderr, err);
+      fprintf (stderr, "%s\n", err);
       return 1;
     }
 
   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 */