diff options
author | dx <aryadevchavali1@gmail.com> | 2020-05-07 01:20:50 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-05-07 01:20:50 +0100 |
commit | eeee4a1bf55434d168b3c07eab8cf156bc54ea13 (patch) | |
tree | e352667ae6f9a1d15e410c5ab96920eea8504712 /Converter | |
parent | 7d3ec1feb8bfa4ddbe555a6e029c05c525722c6a (diff) | |
download | mdhtml-eeee4a1bf55434d168b3c07eab8cf156bc54ea13.tar.gz mdhtml-eeee4a1bf55434d168b3c07eab8cf156bc54ea13.tar.bz2 mdhtml-eeee4a1bf55434d168b3c07eab8cf156bc54ea13.zip |
~rearrange the formatted string calls
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 63f86ed..aa5dc58 100644 --- a/Converter/src/compiler.c +++ b/Converter/src/compiler.c @@ -120,8 +120,8 @@ string compile_line(string line, size_t size_of_line, string line_or_source) const int tag_size = 4; const int close_tag_size = 5; string tag = malloc(sizeof(*tag) * 5); - sprintf(tag, "<h%d>", depth); string close_tag = malloc(sizeof(*close_tag) * 6); + sprintf(tag, "<h%d>", depth); sprintf(close_tag, "</h%d>", depth); // allocate buffer with extra 9 characters for the tags |