Ondřej Surý avatar 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 */
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.