projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5657068
)
replaced glib function calls to g_strlcpy()
author
Holger Schemel
<info@artsoft.org>
Fri, 23 Feb 2024 18:13:53 +0000
(19:13 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 23 Feb 2024 18:13:53 +0000
(19:13 +0100)
src/game_bd/bd_cave.h
patch
|
blob
|
history
diff --git
a/src/game_bd/bd_cave.h
b/src/game_bd/bd_cave.h
index ca0721ef6a160a602e450ca7a62234775e1c1a5d..d267c36329d5c207e620b2731f9344720c980905 100644
(file)
--- 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_strl
cpy(dest, src, sizeof(GdString));
+ return
strn
cpy(dest, src, sizeof(GdString));
}
int gd_cave_time_show(const GdCave *cave, int internal_time);