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 | |
parent | 8586fb8f07b38537a4a13f84610636461a9d24eb (diff) |
-be more careful, ppl, please
Diffstat (limited to 'src')
-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 c95146de69..24011e0149 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, |