From cd54239dd82cb8e6de93c26c534a0b6f1e9956cb Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 23 Feb 2024 19:13:53 +0100 Subject: [PATCH] replaced glib function calls to g_strlcpy() --- src/game_bd/bd_cave.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game_bd/bd_cave.h b/src/game_bd/bd_cave.h index ca0721ef..d267c363 100644 --- a/src/game_bd/bd_cave.h +++ b/src/game_bd/bd_cave.h @@ -702,10 +702,9 @@ void gd_drawcave_game(const GdCave *cave, int **element_buffer, int **gfx_buffer boolean bonus_life_flash, int animcycle, boolean hate_invisible_outbox); /* function to copy a GdString */ -static inline int -gd_strcpy(GdString dest, const GdString src) +static inline char *gd_strcpy(GdString dest, const GdString src) { - return g_strlcpy(dest, src, sizeof(GdString)); + return strncpy(dest, src, sizeof(GdString)); } int gd_cave_time_show(const GdCave *cave, int internal_time); -- 2.34.1