From 5bb471ca804e023bd64976d7dac81300d23d103e Mon Sep 17 00:00:00 2001 From: Robert Konrad Date: Tue, 27 Aug 2024 16:16:30 +0200 Subject: [PATCH] Fix a warning --- Sources/backends/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/backends/util.c b/Sources/backends/util.c index b02b6d4..aec1c9a 100644 --- a/Sources/backends/util.c +++ b/Sources/backends/util.c @@ -9,7 +9,7 @@ void indent(char *code, size_t *offset, int indentation) { char str[16]; memset(str, '\t', sizeof(str)); str[indentation] = 0; - *offset += sprintf(&code[*offset], str); + *offset += sprintf(&code[*offset], "%s", str); } static void find_referenced_global_for_var(variable v, global_id *globals, size_t *globals_size) {