summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-09-28 15:58:59 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-09-28 15:58:59 +0000
commitd0ac5ca746dc2658ee6a7a8480fa84ad57b0eee5 (patch)
tree1865210b057df89e3e5fb165f7dbf768351e1cf9 /src/gui/chat.cpp
parentf616a0e4736cc6f7b9b593b5579328469c3cc159 (diff)
downloadmana-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.cpp4
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 "";
}