]> git.pld-linux.org Git - packages/coreutils.git/commitdiff
- fix format string warning
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 17 Dec 2012 23:05:49 +0000 (00:05 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 17 Dec 2012 23:05:49 +0000 (00:05 +0100)
coreutils.spec
format-security.patch [new file with mode: 0644]

index 0efe01bb110ea44bd08673ef3f843a5d48f03c31..3625930e8da0f3611708e30f4c62b154fbe4c51b 100644 (file)
@@ -29,6 +29,7 @@ Patch7:               %{name}-sparc64.patch
 Patch8:                %{name}-pl.po-update.patch
 # from http://www.beatex.org/web/advancedcopy.html, edited by shadzik
 Patch9:                %{name}-advcopy.patch
+Patch10:       format-security.patch
 URL:           http://www.gnu.org/software/coreutils/
 BuildRequires: acl-devel
 BuildRequires: attr-devel
@@ -116,6 +117,7 @@ Programy zawarte w tym pakiecie to:
 # progress-bar patch, -g,--progress-bar //if in doubt, comment it out
 %patch9 -p1
 %endif
+%patch10 -p1
 
 %{__perl} -pi -e 's@GNU/Linux@PLD Linux@' m4/host-os.m4
 
diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..676a203
--- /dev/null
@@ -0,0 +1,11 @@
+--- coreutils-8.20/gnulib-tests/test-xvasprintf.c~     2012-10-23 16:17:25.000000000 +0200
++++ coreutils-8.20/gnulib-tests/test-xvasprintf.c      2012-12-17 23:51:09.622359300 +0100
+@@ -95,7 +95,7 @@
+   {
+     /* Silence gcc warning about zero-length format string.  */
+     const char *empty = "";
+-    result = xasprintf (empty);
++    result = xasprintf ("%s",empty);
+     ASSERT (result != NULL);
+     ASSERT (strcmp (result, "") == 0);
+     free (result);
This page took 0.144804 seconds and 4 git commands to generate.