From ed72f50d39da7a689e44f814efec9de59f5f24ac Mon Sep 17 00:00:00 2001 From: dx Date: Wed, 6 May 2020 06:24:23 +0100 Subject: +!fixed bug, caused close tag to not occur in header This was because it wrote to the null character and thus was inaccessible (I think). --- Converter/src/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Converter/src') diff --git a/Converter/src/compiler.c b/Converter/src/compiler.c index dbf940a..86f6fbd 100644 --- a/Converter/src/compiler.c +++ b/Converter/src/compiler.c @@ -133,7 +133,7 @@ string compile_line(string line, size_t size_of_line, string line_or_source) // write the rest of the line to the compiled_line strncpy(compiled_line + tag_size, line + depth, size_of_line); // write the end tags - strncpy(compiled_line + size_of_content + tag_size, close_tag, + strncpy(compiled_line + size_of_content + tag_size - 1, close_tag, close_tag_size + 1); } else -- cgit v1.2.3-13-gbd6f