From eeee4a1bf55434d168b3c07eab8cf156bc54ea13 Mon Sep 17 00:00:00 2001 From: dx Date: Thu, 7 May 2020 01:20:50 +0100 Subject: ~rearrange the formatted string calls --- Converter/src/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Converter') 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, "", depth); string close_tag = malloc(sizeof(*close_tag) * 6); + sprintf(tag, "", depth); sprintf(close_tag, "", depth); // allocate buffer with extra 9 characters for the tags -- cgit v1.2.3-13-gbd6f