gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r7990 - GNUnet/src/util/os


From: gnunet
Subject: [GNUnet-SVN] r7990 - GNUnet/src/util/os
Date: Sat, 6 Dec 2008 10:01:08 -0700 (MST)

Author: holindho
Date: 2008-12-06 10:01:08 -0700 (Sat, 06 Dec 2008)
New Revision: 7990

Modified:
   GNUnet/src/util/os/installpath.c
Log:
safer


Modified: GNUnet/src/util/os/installpath.c
===================================================================
--- GNUnet/src/util/os/installpath.c    2008-12-05 20:13:51 UTC (rev 7989)
+++ GNUnet/src/util/os/installpath.c    2008-12-06 17:01:08 UTC (rev 7990)
@@ -123,8 +123,8 @@
         path = NULL;
       else
         {
-          len++;
           path = (char *) GNUNET_malloc (len);
+          memset (path, 0x00, len);
           ret = ((MyNSGetExecutablePathProto) func) (path, &len);
           if (ret != 0)
             {





reply via email to

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