[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 03/05: rps: use correct buffer sizes
From: |
gnunet |
Subject: |
[gnunet] 03/05: rps: use correct buffer sizes |
Date: |
Mon, 16 Nov 2020 23:04:00 +0100 |
This is an automated email from the git hooks/post-receive script.
julius-buenger pushed a commit to branch master
in repository gnunet.
commit 89ea7681905d58ac3f25cea581ee084a70715efc
Author: Julius Bünger <buenger@mytum.de>
AuthorDate: Mon Nov 16 22:56:27 2020 +0100
rps: use correct buffer sizes
---
src/rps/rps-test_util.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/rps/rps-test_util.h b/src/rps/rps-test_util.h
index 2f11f0105..72aa78803 100644
--- a/src/rps/rps-test_util.h
+++ b/src/rps/rps-test_util.h
@@ -73,7 +73,7 @@ close_all_files ();
"Failed to create tmp_buf\n"); \
break; \
} \
- (void) strncat (tmp_buf, "\n", 512); \
+ (void) strncat (tmp_buf, "\n", 511); \
GNUNET_DISK_file_write (get_file_handle (file_name), \
tmp_buf, \
strnlen (tmp_buf, 512)); \
@@ -94,8 +94,7 @@ close_all_files ();
"Failed to create
tmp_buf\n"); \
break; \
} \
- (void) strncat (tmp_buf, "\n",
\
- len); \
+ (void) strncat (tmp_buf, "\n",
2); \
GNUNET_DISK_file_write ( \
get_file_handle (file_name),
\
tmp_buf, \
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.