summaryrefslogtreecommitdiff
path: root/src/map/log.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-26 05:38:49 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-26 05:38:49 +0000
commitab56858e0611a8075c06807712622b920d17ba8a (patch)
treee56acbd7a999f50d2d4609795fa16c512d11c70f /src/map/log.c
parent9e0e5c1f9ecb289169321072bbb0275f12aa515b (diff)
downloadhercules-ab56858e0611a8075c06807712622b920d17ba8a.tar.gz
hercules-ab56858e0611a8075c06807712622b920d17ba8a.tar.bz2
hercules-ab56858e0611a8075c06807712622b920d17ba8a.tar.xz
hercules-ab56858e0611a8075c06807712622b920d17ba8a.zip
- Small change that may fix a crash in loggin guild chat?
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5752 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/log.c')
-rw-r--r--src/map/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/log.c b/src/map/log.c
index 2722153e7..af621e425 100644
--- a/src/map/log.c
+++ b/src/map/log.c
@@ -718,7 +718,7 @@ int log_chat(char *type, int type_id, int src_charid, int src_accid, char *map,
#ifndef TXT_ONLY
if(log_config.sql_logs > 0){
sprintf(tmp_sql, "INSERT DELAYED INTO `%s` (`time`, `type`, `type_id`, `src_charid`, `src_accountid`, `src_map`, `src_map_x`, `src_map_y`, `dst_charname`, `message`) VALUES (NOW(), '%s', '%d', '%d', '%d', '%s', '%d', '%d', '%s', '%s')",
- log_config.log_chat_db, type, type_id, src_charid, src_accid, map, x, y, jstrescapecpy(t_charname, dst_charname), jstrescapecpy(t_msg, message));
+ log_config.log_chat_db, type, type_id, src_charid, src_accid, map, x, y, jstrescapecpy(t_charname, (char *)dst_charname), jstrescapecpy(t_msg, (char *)message));
if(mysql_query(&logmysql_handle, tmp_sql)){
ShowSQL("DB error - %s\n",mysql_error(&logmysql_handle));