/[packages]/cauldron/lincity-ng/current/SOURCES/lincity-ng-2.0-fix-str-fmt.patch
ViewVC logotype

Contents of /cauldron/lincity-ng/current/SOURCES/lincity-ng-2.0-fix-str-fmt.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6434 - (show annotations) (download)
Tue Jan 11 22:21:15 2011 UTC (13 years, 3 months ago) by supp
File size: 837 byte(s)
imported package lincity-ng
1 --- src/lincity/fileutil.cpp.str 2009-01-26 22:35:20.000000000 -0500
2 +++ src/lincity/fileutil.cpp 2009-01-26 22:35:45.000000000 -0500
3 @@ -498,7 +498,7 @@
4
5 void malloc_failure(void)
6 {
7 - printf(_("Out of memory: malloc failure\n"));
8 + printf("%s",_("Out of memory: malloc failure\n"));
9 exit(1);
10 }
11
12 --- src/lincity-ng/Dialog.cpp.str 2009-01-26 22:36:00.000000000 -0500
13 +++ src/lincity-ng/Dialog.cpp 2009-01-26 22:36:19.000000000 -0500
14 @@ -378,7 +378,7 @@
15 setParagraphN( "statistic_text", line++, outf );
16 }
17 if (sustain_flag){
18 - snprintf (outf, maxlength, _("Economy is sustainable"));
19 + snprintf (outf, maxlength, "%s", _("Economy is sustainable"));
20 setParagraphN( "statistic_text", line++, outf );
21 }
22 snprintf (outf, maxlength, _("Population %d of which %d are not housed.")

  ViewVC Help
Powered by ViewVC 1.1.30