From 9fd91b9b575c27886034163a4257652fe5446ba0 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 15 Nov 2024 21:13:39 +0100 Subject: [PATCH] added unescaping fixed-sized strings in BDCFF files --- src/game_bd/bd_bdcff.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game_bd/bd_bdcff.c b/src/game_bd/bd_bdcff.c index 11456714..e170cdce 100644 --- a/src/game_bd/bd_bdcff.c +++ b/src/game_bd/bd_bdcff.c @@ -175,7 +175,10 @@ static boolean struct_set_property(void *str, const GdStructDescriptor *prop_des if (prop_desc[i].type == GD_TYPE_STRING) { // strings are treated different, as occupy the whole length of the line - gd_strcpy(value, param); + char *str = getUnescapedString(param); + + gd_strcpy(value, str); + checked_free(str); // remember this to skip checking the number of parameters at the end of the function was_string = TRUE; -- 2.34.1