Browse Source

Expanded msg len for e_msg in pc_useitem to CHAT_SIZE_MAX

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
Cydh Ramdh 10 years ago
parent
commit
5c24534b51
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/pc.c

+ 1 - 1
src/map/pc.c

@@ -4809,7 +4809,7 @@ int pc_useitem(struct map_session_data *sd,int n)
 			if( sd->item_delay[i].nameid ) {// found
 			if( sd->item_delay[i].nameid ) {// found
 				if( DIFF_TICK(sd->item_delay[i].tick, tick) > 0 ) {
 				if( DIFF_TICK(sd->item_delay[i].tick, tick) > 0 ) {
 					int e_tick = DIFF_TICK(sd->item_delay[i].tick, tick)/1000;
 					int e_tick = DIFF_TICK(sd->item_delay[i].tick, tick)/1000;
-					char e_msg[100];
+					char e_msg[CHAT_SIZE_MAX];
 					if( e_tick > 99 )
 					if( e_tick > 99 )
 						sprintf(e_msg,msg_txt(sd,379), // Item Failed. [%s] is cooling down. Wait %.1f minutes.
 						sprintf(e_msg,msg_txt(sd,379), // Item Failed. [%s] is cooling down. Wait %.1f minutes.
 										itemdb_jname(sd->item_delay[i].nameid), (double)e_tick / 60);
 										itemdb_jname(sd->item_delay[i].nameid), (double)e_tick / 60);