From b8b627cd390906ce6b0d9eda5f79ae5e1af300d0 Mon Sep 17 00:00:00 2001 From: Riccardo De Maria Date: Fri, 19 Apr 2024 22:08:25 +0200 Subject: [PATCH] solve dangling pointers --- src/mad_var.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mad_var.c b/src/mad_var.c index b70977411..f40b80ab4 100644 --- a/src/mad_var.c +++ b/src/mad_var.c @@ -455,7 +455,7 @@ set_stringvar(const char* name, char* string) { if ((var = find_variable(c_dum->c, variable_list)) != NULL) { - if (var->type == 3) var->string = string; + if (var->type == 3) var->string = tmpbuff(string); } else {