diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-08 09:51:24 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-08 09:51:24 +0000 |
commit | c157d10c526ce74e4d26de4255740e7a99cff08b (patch) | |
tree | c86d2692fb33f8282911ef66e92919dced0fab38 /src/peerstore | |
parent | 8586fb8f07b38537a4a13f84610636461a9d24eb (diff) | |
download | gnunet-c157d10c526ce74e4d26de4255740e7a99cff08b.tar.gz gnunet-c157d10c526ce74e4d26de4255740e7a99cff08b.zip |
-be more careful, ppl, please
Diffstat (limited to 'src/peerstore')
-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, |