From d0725afa8363b5f7b0612e087b48013d39339039 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 18 Jan 2015 11:37:45 -0200 Subject: Fixing 38 issues Addressing out of bounds read/write, pointless null checks on already deferenced variables, dead code. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind --- src/map/duel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/duel.c') diff --git a/src/map/duel.c b/src/map/duel.c index 98fa91d3e..964ef9e11 100644 --- a/src/map/duel.c +++ b/src/map/duel.c @@ -89,7 +89,7 @@ int duel_create(struct map_session_data* sd, const unsigned int maxpl) { duel->list[i].invites_count = 0; duel->list[i].max_players_limit = maxpl; - strcpy(output, msg_txt(372)); // " -- Duel has been created (@invite/@leave) --" + safestrncpy(output, msg_txt(372), sizeof(output)); // " -- Duel has been created (@invite/@leave) --" clif_disp_onlyself(sd, output, strlen(output)); clif->map_property(sd, MAPPROPERTY_FREEPVPZONE); -- cgit v1.2.3-60-g2f50