bug-diffutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-diffutils] Building diffutils 3.3 with hardening flags


From: Paul Eggert
Subject: Re: [bug-diffutils] Building diffutils 3.3 with hardening flags
Date: Mon, 12 Aug 2013 09:09:45 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8

Santiago Vila wrote:
> I wish there were a more simple way to fix this.

Does this work around the problem?

diff --git a/tests/test-xvasprintf.c b/tests/test-xvasprintf.c
index 0a2f1b8..4b7ff04 100644
--- a/tests/test-xvasprintf.c
+++ b/tests/test-xvasprintf.c
@@ -56,7 +56,7 @@ test_xvasprintf (void)
   {
     /* Silence gcc warning about zero-length format string.  */
     const char *empty = "";
-    result = my_xasprintf (empty);
+    result = my_xasprintf (empty, empty);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "") == 0);
     free (result);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]