diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-09-28 15:58:59 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-09-28 15:58:59 +0000 |
commit | d0ac5ca746dc2658ee6a7a8480fa84ad57b0eee5 (patch) | |
tree | 1865210b057df89e3e5fb165f7dbf768351e1cf9 /src/gui/chat.cpp | |
parent | f616a0e4736cc6f7b9b593b5579328469c3cc159 (diff) | |
download | mana-client-d0ac5ca746dc2658ee6a7a8480fa84ad57b0eee5.tar.gz mana-client-d0ac5ca746dc2658ee6a7a8480fa84ad57b0eee5.tar.bz2 mana-client-d0ac5ca746dc2658ee6a7a8480fa84ad57b0eee5.tar.xz mana-client-d0ac5ca746dc2658ee6a7a8480fa84ad57b0eee5.zip |
*** empty log message ***
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index c6967a08..fb424b4e 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -201,9 +201,9 @@ char * Chat::chat_send(string nick, string msg) { // send processed message WFIFOW(0) = net_w_value(packid); - WFIFOW(2) = net_w_value(msg.length()+4); + WFIFOW(2) = net_w_value((unsigned short)(msg.length()+4)); memcpy(WFIFOP(4), msg.c_str(), msg.length()); - WFIFOSET(msg.length()+4); + WFIFOSET((int)msg.length()+4); nick = msg = ""; return ""; } |