diff options
author | dx <aryadevchavali1@gmail.com> | 2020-05-06 06:24:23 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-05-06 06:24:23 +0100 |
commit | ed72f50d39da7a689e44f814efec9de59f5f24ac (patch) | |
tree | 3f60965f7100b716b2da83db80980e52c7226d44 /Converter | |
parent | d9b756c5a552c6968791eac5f92cdfda91f696b4 (diff) | |
download | mdhtml-ed72f50d39da7a689e44f814efec9de59f5f24ac.tar.gz mdhtml-ed72f50d39da7a689e44f814efec9de59f5f24ac.tar.bz2 mdhtml-ed72f50d39da7a689e44f814efec9de59f5f24ac.zip |
+!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).
Diffstat (limited to 'Converter')
-rw-r--r-- | Converter/src/compiler.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |