Permalink
Browse files

Ubuntu now checks that if you use "%3$s" in a sprintf format string y…

…ou must also use "%1$" and "%2$".
  • Loading branch information...
1 parent 7cdc8e9 commit 8a1c8ffe090cede7f48220455de5552398d3d1f0 George Williams committed May 11, 2009
Showing with 8 additions and 5 deletions.
  1. +5 −2 fontforge/fontinfo.c
  2. +1 −1 fontforge/ofl.c
  3. +2 −2 fontforge/stamp.c
View
@@ -3530,8 +3530,11 @@ static int GFI_AddOFL(GGadget *g, GEvent *e) {
for ( m=0; m<2; ++m ) {
len = 0;
for ( l=0; data[l]!=NULL; ++l ) {
- if ( l==0 || l==1 ) {
- sprintf( buffer, data[l], tm->tm_year+1900, author, reservedname );
+ if ( l==0 ) {
+ sprintf( buffer, data[l], tm->tm_year+1900, author );
+ bpt = buffer;
+ } else if ( l==1 ) {
+ sprintf( buffer, data[l], reservedname );
bpt = buffer;
} else
bpt = data[l];
View
@@ -7,7 +7,7 @@
static char *ofl_eng[] = {
"Copyright (c) %1$d, %2$s (<URL|email>),",
- "with Reserved Font Name %3$s.",
+ "with Reserved Font Name %s.",
"",
"This Font Software is licensed under the SIL Open Font License, Version 1.1.",
"This license is copied below, and is also available with a FAQ at:",
View
@@ -1,5 +1,5 @@
#include <time.h>
-const time_t source_modtime = 1242059136L;
-const char *source_modtime_str = "16:25 GMT 11-May-2009";
+const time_t source_modtime = 1242060648L;
+const char *source_modtime_str = "16:50 GMT 11-May-2009";
const char *source_version_str = "20090511";

0 comments on commit 8a1c8ff

Please sign in to comment.