-be more careful, ppl, please
authorChristian Grothoff <christian@grothoff.org>
Fri, 8 Jul 2016 09:51:24 +0000 (09:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 8 Jul 2016 09:51:24 +0000 (09:51 +0000)
src/peerstore/plugin_peerstore_flat.c

index c95146de690db232f2d0dff91342e8fd0dd61b7f..24011e0149c7eb00f7f2c8ca40c9ccd5033120fe 100644 (file)
@@ -396,7 +396,7 @@ database_setup (struct Plugin *plugin)
     return GNUNET_SYSERR;
   }
 
-  buffer = GNUNET_malloc (size) + 1;
+  buffer = GNUNET_malloc (size + 1);
 
   if (GNUNET_SYSERR == GNUNET_DISK_file_read (fh,
                                               buffer,