From: Holger Schemel Date: Fri, 15 Nov 2024 20:13:39 +0000 (+0100) Subject: added unescaping fixed-sized strings in BDCFF files X-Git-Tag: 4.4.0.0-test-4~58 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=9fd91b9b575c27886034163a4257652fe5446ba0;p=rocksndiamonds.git added unescaping fixed-sized strings in BDCFF files --- 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;