Author: grothoff
Date: 2005-06-26 05:03:43 -0700 (Sun, 26 Jun 2005)
New Revision: 1052

Modified:
   GNUnet/src/util/daemon.c
Log:
off by one

Modified: GNUnet/src/util/daemon.c
===================================================================
--- GNUnet/src/util/daemon.c    2005-06-26 11:52:55 UTC (rev 1051)
+++ GNUnet/src/util/daemon.c    2005-06-26 12:03:43 UTC (rev 1052)
@@ -98,7 +98,7 @@
        i--;
       if ( i != -1 ) {
        cp[i+1] = '\0';
-       path = MALLOC(i+1+strlen("gnunetd"));
+       path = MALLOC(i+2+strlen("gnunetd"));
        strcpy(path, cp);
        strcat(path, "gnunetd");
        if (ACCESS(path, X_OK) == 0) {



_______________________________________________
GNUnet-SVN mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnunet-svn

Reply via email to