aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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, \