diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-24 13:29:00 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-24 13:29:00 +0000 |
commit | d1e6e862597f8bbadb055f90e31828c2ed61d01b (patch) | |
tree | 609755bc4974ae0c54c1676717fe544c9cabf8a7 /src/char_sql/int_mail.c | |
parent | 339ac6c105cc0548328e15adce1f94d7ecddb0bc (diff) | |
download | hercules-d1e6e862597f8bbadb055f90e31828c2ed61d01b.tar.gz hercules-d1e6e862597f8bbadb055f90e31828c2ed61d01b.tar.bz2 hercules-d1e6e862597f8bbadb055f90e31828c2ed61d01b.tar.xz hercules-d1e6e862597f8bbadb055f90e31828c2ed61d01b.zip |
* Corrected a fex misshaps from r11571:
- disabling the memory manager
- using the wrong length for the title and body in mail_savemessage
* Removed the quick-fix in the npc duplicate check and the impossible condition that is generating the warning.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11573 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/int_mail.c')
-rw-r--r-- | src/char_sql/int_mail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char_sql/int_mail.c b/src/char_sql/int_mail.c index b1a1bff5f..bdf7653f1 100644 --- a/src/char_sql/int_mail.c +++ b/src/char_sql/int_mail.c @@ -124,8 +124,8 @@ static int mail_savemessage(struct mail_message* msg) if( SQL_SUCCESS != SqlStmt_PrepareStr(stmt, StringBuf_Value(&buf)) || SQL_SUCCESS != SqlStmt_BindParam(stmt, 0, SQLDT_STRING, msg->send_name, strnlen(msg->send_name, NAME_LENGTH)) || SQL_SUCCESS != SqlStmt_BindParam(stmt, 1, SQLDT_STRING, msg->dest_name, strnlen(msg->dest_name, NAME_LENGTH)) - || SQL_SUCCESS != SqlStmt_BindParam(stmt, 2, SQLDT_STRING, msg->title, strnlen(msg->title, NAME_LENGTH)) - || SQL_SUCCESS != SqlStmt_BindParam(stmt, 3, SQLDT_STRING, msg->body, strnlen(msg->body, NAME_LENGTH)) + || SQL_SUCCESS != SqlStmt_BindParam(stmt, 2, SQLDT_STRING, msg->title, strnlen(msg->title, MAIL_TITLE_LENGTH)) + || SQL_SUCCESS != SqlStmt_BindParam(stmt, 3, SQLDT_STRING, msg->body, strnlen(msg->body, MAIL_BODY_LENGTH)) || SQL_SUCCESS != SqlStmt_Execute(stmt) ) { Sql_ShowDebug(sql_handle); |