From 80c5f9a8129f5a151770b0979b9e39777cffb9f6 Mon Sep 17 00:00:00 2001 From: dx Date: Thu, 7 May 2020 01:26:16 +0100 Subject: +!fix buffer overflow; causes removal of end tag --- Converter/src/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Converter/src/test.c b/Converter/src/test.c index d254194..508a9f6 100644 --- a/Converter/src/test.c +++ b/Converter/src/test.c @@ -17,7 +17,7 @@ void test_compile_line_header_depth(void) const string expected_result = expected_results[i]; const int length_of_test = strnlen(test_string, 512); const int length_of_expected = strnlen(expected_result, 512); - const string test_result = compile_line(test_string, length_of_test + 1, ""); + const string test_result = compile_line(test_string, length_of_test, ""); fprintf(stderr, "Testing %s => %s\n", test_string, expected_result); fprintf(stderr, "Result: %s\n\n", test_result); -- cgit v1.2.3-13-gbd6f