tags 643396 + patch
thanks

Hi

Attached is a possible patch for this issue. However there are still
some deprecation warnings.

Regards,
Salvatore
diff -u gnudoq-0.94/debian/changelog gnudoq-0.94/debian/changelog
--- gnudoq-0.94/debian/changelog
+++ gnudoq-0.94/debian/changelog
@@ -1,3 +1,12 @@
+gnudoq (0.94-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Add fix-643396-format-security.patch. Fix FTBFS: error: format not a
+    string literal and no format arguments [-Werror=format-security].
+    (Closes: #643396). 
+
+ -- Salvatore Bonaccorso <car...@debian.org>  Fri, 25 Nov 2011 18:50:05 +0100
+
 gnudoq (0.94-2) unstable; urgency=low
 
   * Move binary to /usr/games.
diff -u gnudoq-0.94/debian/patches/series gnudoq-0.94/debian/patches/series
--- gnudoq-0.94/debian/patches/series
+++ gnudoq-0.94/debian/patches/series
@@ -2,0 +3 @@
+fix-643396-format-security.patch
only in patch2:
unchanged:
--- gnudoq-0.94.orig/debian/patches/fix-643396-format-security.patch
+++ gnudoq-0.94/debian/patches/fix-643396-format-security.patch
@@ -0,0 +1,20 @@
+--- a/sudoku.C
++++ b/sudoku.C
+@@ -48,14 +48,14 @@
+ 				grid[stack[i].index] = '1' + stack[i].value;
+ 		}
+ 
+-		printf(top);
+-		printf(across);
++		printf("%s", top);
++		printf("%s", across);
+ 		for(int i = 0; i < 9; ++i) {
+ 			printf(lines, i + 1,
+ 			grid[i * 9], grid[i*9+1], grid[i*9+2],
+ 			grid[i*9+3], grid[i*9+4], grid[i*9+5],
+ 			grid[i*9+6], grid[i*9+7], grid[i*9+8]);
+-			printf(i % 3 == 2 ? boss : across);
++			printf("%d", i % 3 == 2 ? boss : across);
+ 		}
+ 
+ 		return 0;

Attachment: signature.asc
Description: Digital signature

Reply via email to