aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJason Woodward2020-04-25 21:48:27 -0400
committerJason Woodward2020-04-26 14:28:09 -0400
commitf7862745a1e4bd8b045b1f5eae7b64bd94d4f461 (patch)
tree01d0ca86523e39a2b450ac2d37f0b9f26b6c17db /t
parentb44d77141b1d4b8fc42d96695be7a9a6bc0147d9 (diff)
downloadslapt-get-f7862745a1e4bd8b045b1f5eae7b64bd94d4f461.tar.gz
fixup some old string handling, add slapt_strlcpy
Diffstat (limited to 't')
-rw-r--r--t/test_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test_common.c b/t/test_common.c
index 8955edb..52c6655 100644
--- a/t/test_common.c
+++ b/t/test_common.c
@@ -51,7 +51,7 @@ END_TEST
START_TEST(test_slapt_gen_md5_sum_of_file)
{
const char *file = "data/md5_dummy";
- char result_sum[SLAPT_MD5_STR_LEN];
+ char result_sum[SLAPT_MD5_STR_LEN + 1];
FILE *f = fopen(file, "r");
slapt_gen_md5_sum_of_file(f, result_sum);