[Xfce4-commits] [apps/parole] 02/02: Fix off by one error in allocation, bug 10962

noreply at xfce.org noreply at xfce.org
Tue Jun 24 13:25:23 CEST 2014


This is an automated email from the git hooks/post-receive script.

bluesabre pushed a commit to branch master
in repository apps/parole.

commit 20af602eaa39e17306df209fa52e4cb5212b3733
Author: Simon Marchi <simon.marchi at ericsson.com>
Date:   Tue Jun 24 07:25:11 2014 -0400

    Fix off by one error in allocation, bug 10962
---
 src/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c
index f0ba015..ba19329 100644
--- a/src/main.c
+++ b/src/main.c
@@ -137,7 +137,7 @@ parole_send_files (gchar **filenames, gboolean enqueue)
     if ( !proxy )
         g_error ("Unable to create proxy for %s", PAROLE_DBUS_NAME);
 
-    out_paths = g_new0 (gchar *, g_strv_length (filenames));
+    out_paths = g_new0 (gchar *, g_strv_length (filenames) + 1);
 
     for ( i = 0; filenames && filenames[i]; i++)
     {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list