diff options
-rw-r--r-- | src/peerstore/plugin_peerstore_flat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peerstore/plugin_peerstore_flat.c b/src/peerstore/plugin_peerstore_flat.c index c95146de6..24011e014 100644 --- a/src/peerstore/plugin_peerstore_flat.c +++ b/src/peerstore/plugin_peerstore_flat.c | |||
@@ -396,7 +396,7 @@ database_setup (struct Plugin *plugin) | |||
396 | return GNUNET_SYSERR; | 396 | return GNUNET_SYSERR; |
397 | } | 397 | } |
398 | 398 | ||
399 | buffer = GNUNET_malloc (size) + 1; | 399 | buffer = GNUNET_malloc (size + 1); |
400 | 400 | ||
401 | if (GNUNET_SYSERR == GNUNET_DISK_file_read (fh, | 401 | if (GNUNET_SYSERR == GNUNET_DISK_file_read (fh, |
402 | buffer, | 402 | buffer, |