]> git.pld-linux.org Git - packages/lincity-ng.git/commitdiff
- fix format string errors auto/th/lincity-ng-2.0-3
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 13 Jul 2017 15:02:46 +0000 (00:02 +0900)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 13 Jul 2017 15:02:46 +0000 (00:02 +0900)
- rel 3

format-security.patch [new file with mode: 0644]
lincity-ng.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..40685a0
--- /dev/null
@@ -0,0 +1,22 @@
+--- lincity-ng-2.0/src/lincity/fileutil.cpp~   2009-01-26 05:20:41.000000000 +0900
++++ lincity-ng-2.0/src/lincity/fileutil.cpp    2017-07-13 23:48:55.355365373 +0900
+@@ -498,7 +498,7 @@
+ void malloc_failure(void)
+ {
+-    printf(_("Out of memory: malloc failure\n"));
++    puts(_("Out of memory: malloc failure\n"));
+     exit(1);
+ }
+--- lincity-ng-2.0/src/lincity-ng/Dialog.cpp~  2009-01-26 05:20:43.000000000 +0900
++++ lincity-ng-2.0/src/lincity-ng/Dialog.cpp   2017-07-13 23:49:41.569815446 +0900
+@@ -378,7 +378,7 @@
+         setParagraphN( "statistic_text", line++, outf );
+     }
+     if (sustain_flag){
+-          snprintf (outf, maxlength, _("Economy is sustainable"));
++          snprintf (outf, maxlength, "%s", _("Economy is sustainable"));
+         setParagraphN( "statistic_text", line++, outf );
+     }
+     snprintf (outf, maxlength, _("Population  %d  of which  %d  are not housed.")
index 75d227ebe27ebb2f6a0cdd7f10e2b6ec91d3e448..2cfffef8feab7d44017a61a86194a8cebe521f8b 100644 (file)
@@ -2,12 +2,13 @@ Summary:      Lincity - a Next Generation city/country simulation
 Summary(pl.UTF-8):     Lincity - symulator miasta/kraju Następnej Generacji
 Name:          lincity-ng
 Version:       2.0
-Release:       2
+Release:       3
 License:       GPL v2+
 Group:         X11/Applications/Games
 Source0:       http://download.berlios.de/lincity-ng/%{name}-%{version}.tar.bz2
 # Source0-md5: 1bd0f58e0f2b131d70044f4230600ed1
 Patch0:                %{name}-desktop.patch
+Patch1:                format-security.patch
 URL:           http://lincity-ng.berlios.de/wiki/index.php/Main_Page
 BuildRequires: OpenGL-GLU-devel
 BuildRequires: OpenGL-devel
@@ -56,6 +57,7 @@ znajduje się w rękach gracza.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 %{__sed} 's/ -O3 -g / /' -i Jamrules
 
 %build
@@ -67,6 +69,8 @@ rm -rf $RPM_BUILD_ROOT
 
 jam -s DESTDIR=$RPM_BUILD_ROOT install
 
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.120033 seconds and 4 git commands to generate.