]> git.pld-linux.org Git - packages/t1lib.git/blob - format-security.patch
- fix format string warnings
[packages/t1lib.git] / format-security.patch
1 --- t1lib-5.1.2/lib/type1/objects.h~    2007-12-23 16:49:42.000000000 +0100
2 +++ t1lib-5.1.2/lib/type1/objects.h     2012-12-13 13:46:42.872059259 +0100
3 @@ -214,7 +214,7 @@
4  /*SHARED*/
5  /* NDW: personally, I want to see status and error messages! */
6  #define IfTrace0(condition,model)                                 \
7 -        {if (condition) printf(model);}
8 +        {if (condition) printf("%s",model);}
9  #define IfTrace1(condition,model,arg0)                            \
10          {if (condition) printf(model,arg0);}
11  #define IfTrace2(condition,model,arg0,arg1)                       \
12 --- t1lib-5.1.2/lib/t1lib/t1subset.c~   2007-12-23 16:49:42.000000000 +0100
13 +++ t1lib-5.1.2/lib/t1lib/t1subset.c    2012-12-13 13:47:33.042057487 +0100
14 @@ -759,7 +759,7 @@
15              tr_len);
16      T1_PrintLog( "T1_SubsetFont()", err_warn_msg_buf,
17                  T1LOG_DEBUG);
18 -    l+=sprintf( &(trailerbuf[l]), linebuf); /* contains the PostScript trailer */
19 +    l+=sprintf( &(trailerbuf[l]), "%s", linebuf); /* contains the PostScript trailer */
20    }
21    
22    /* compute size of output file */
This page took 0.034999 seconds and 3 git commands to generate.