Package: libgd2 / 2.0.36~rc1~dfsg-6.1+deb7u2

0004_fix_fprint_string_formatting.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Subject: Fix fprint string formatting
Author: Jonas Smedegaard <dr@jones.dk>
Bug-Debian: http://bugs.debian.org/643422
Last-Update: 20111015

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