Преглед изворни кода

- Fixed a crash issue where sprintf was attempting to write outside of the bounds of an array

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16236 54d463be-8e91-2dee-dedb-b68131a5f0ec
epoque11 пре 13 година
родитељ
комит
f48046eca1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/map/clif.c

+ 1 - 1
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);