summaryrefslogtreecommitdiff
path: root/src/peerstore/plugin_peerstore_flat.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-08 09:51:24 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-08 09:51:24 +0000
commitc157d10c526ce74e4d26de4255740e7a99cff08b (patch)
treec86d2692fb33f8282911ef66e92919dced0fab38 /src/peerstore/plugin_peerstore_flat.c
parent8586fb8f07b38537a4a13f84610636461a9d24eb (diff)
-be more careful, ppl, please
Diffstat (limited to 'src/peerstore/plugin_peerstore_flat.c')
-rw-r--r--src/peerstore/plugin_peerstore_flat.c2
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)
return GNUNET_SYSERR;
}
- buffer = GNUNET_malloc (size) + 1;
+ buffer = GNUNET_malloc (size + 1);
if (GNUNET_SYSERR == GNUNET_DISK_file_read (fh,
buffer,