aboutsummaryrefslogtreecommitdiff
path: root/src/rps
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2020-11-16 22:56:27 +0100
committerJulius Bünger <buenger@mytum.de>2020-11-16 22:56:27 +0100
commit89ea7681905d58ac3f25cea581ee084a70715efc (patch)
treed83996006791c2a16f3b9d6a215dece95befcf99 /src/rps
parent607211bb755160fd5744d6ea6124dadecf4a9e18 (diff)
downloadgnunet-89ea7681905d58ac3f25cea581ee084a70715efc.tar.gz
gnunet-89ea7681905d58ac3f25cea581ee084a70715efc.zip
rps: use correct buffer sizes
Diffstat (limited to 'src/rps')
-rw-r--r--src/rps/rps-test_util.h5
1 files 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 ();
73 "Failed to create tmp_buf\n"); \ 73 "Failed to create tmp_buf\n"); \
74 break; \ 74 break; \
75 } \ 75 } \
76 (void) strncat (tmp_buf, "\n", 512); \ 76 (void) strncat (tmp_buf, "\n", 511); \
77 GNUNET_DISK_file_write (get_file_handle (file_name), \ 77 GNUNET_DISK_file_write (get_file_handle (file_name), \
78 tmp_buf, \ 78 tmp_buf, \
79 strnlen (tmp_buf, 512)); \ 79 strnlen (tmp_buf, 512)); \
@@ -94,8 +94,7 @@ close_all_files ();
94 "Failed to create tmp_buf\n"); \ 94 "Failed to create tmp_buf\n"); \
95 break; \ 95 break; \
96 } \ 96 } \
97 (void) strncat (tmp_buf, "\n", \ 97 (void) strncat (tmp_buf, "\n", 2); \
98 len); \
99 GNUNET_DISK_file_write ( \ 98 GNUNET_DISK_file_write ( \
100 get_file_handle (file_name), \ 99 get_file_handle (file_name), \
101 tmp_buf, \ 100 tmp_buf, \