浏览代码

Fixed a potential server crash in mob_chat_db

Fixes #1635
Thanks to @Temtaime
Lemongrass3110 8 年之前
父节点
当前提交
b2f0ffb947
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/mob.c

+ 1 - 1
src/map/mob.c

@@ -4273,7 +4273,7 @@ static bool mob_parse_row_chatdb(char* fields[], int columns, int current)
 	msg_id = atoi(fields[0]);
 
 	if (msg_id <= 0 || msg_id > MAX_MOB_CHAT){
-		ShowError("mob_parse_row_chatdb: Invalid chat ID: %d at %s, line %d\n", msg_id, columns, current);
+		ShowError("mob_parse_row_chatdb: Invalid chat ID '%d' in line %d\n", msg_id, current);
 		return false;
 	}