From bf51609e227689a0c0c150fd878f3ea356a64319 Mon Sep 17 00:00:00 2001 From: epoque11 Date: Wed, 6 Jun 2012 18:14:05 +0000 Subject: - Fixed a crash issue where sprintf was attempting to write outside of the bounds of an array git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16236 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/clif.c b/src/map/clif.c index 3ae2be6d5..20a35b044 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11736,7 +11736,7 @@ void clif_parse_OpenVending(int fd, struct map_session_data* sd) } if( vending_checknearnpc(&sd->bl) ) { - char output[50]; + char output[150]; sprintf(output,"You're too close to a NPC, you must be at least %d cells away from any NPC.",battle_config.min_npc_vending_distance); clif_displaymessage(sd->fd, output); clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0); -- cgit v1.2.3-60-g2f50