From: Holger Schemel Date: Fri, 23 Feb 2024 18:13:53 +0000 (+0100) Subject: replaced glib function calls to g_strlcpy() X-Git-Tag: 4.4.0.0-test-1~294 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=cd54239dd82cb8e6de93c26c534a0b6f1e9956cb;p=rocksndiamonds.git replaced glib function calls to g_strlcpy() --- 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);