gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r37484 - gnunet/src/peerstore


From: gnunet
Subject: [GNUnet-SVN] r37484 - gnunet/src/peerstore
Date: Fri, 8 Jul 2016 11:51:25 +0200

Author: grothoff
Date: 2016-07-08 11:51:24 +0200 (Fri, 08 Jul 2016)
New Revision: 37484

Modified:
   gnunet/src/peerstore/plugin_peerstore_flat.c
Log:
-be more careful, ppl, please

Modified: gnunet/src/peerstore/plugin_peerstore_flat.c
===================================================================
--- gnunet/src/peerstore/plugin_peerstore_flat.c        2016-07-07 12:42:16 UTC 
(rev 37483)
+++ gnunet/src/peerstore/plugin_peerstore_flat.c        2016-07-08 09:51:24 UTC 
(rev 37484)
@@ -396,7 +396,7 @@
     return GNUNET_SYSERR;
   }
 
-  buffer = GNUNET_malloc (size) + 1;
+  buffer = GNUNET_malloc (size + 1);
 
   if (GNUNET_SYSERR == GNUNET_DISK_file_read (fh,
                                               buffer,




reply via email to

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