summaryrefslogtreecommitdiff
path: root/src/login/login.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-06-24 18:30:58 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-06-25 13:49:20 -0700
commitc9c81a610d97c95c15f938ecd07ceb71cb0cdfb1 (patch)
tree7637cf53216c6d0b8deadbfb8ea56faf4ff5bc85 /src/login/login.cpp
parentdbbfda0e96037da4f208ff8f00d181a5294484ae (diff)
downloadtmwa-c9c81a610d97c95c15f938ecd07ceb71cb0cdfb1.tar.gz
tmwa-c9c81a610d97c95c15f938ecd07ceb71cb0cdfb1.tar.bz2
tmwa-c9c81a610d97c95c15f938ecd07ceb71cb0cdfb1.tar.xz
tmwa-c9c81a610d97c95c15f938ecd07ceb71cb0cdfb1.zip
Fix bugs
Diffstat (limited to 'src/login/login.cpp')
-rw-r--r--src/login/login.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/login.cpp b/src/login/login.cpp
index d72bf61..b3c7790 100644
--- a/src/login/login.cpp
+++ b/src/login/login.cpp
@@ -3148,7 +3148,7 @@ void parse_login(int fd)
RFIFOSKIP(fd, 2);
WFIFOW(fd, 0) = 0x01dc;
- WFIFOW(fd, 2) = 4 + ld->md5keylen;
+ WFIFOW(fd, 2) = 4 + ld->md5keylen + 1;
WFIFO_STRING(fd, 4, ld->md5key, ld->md5keylen + 1);
WFIFOSET(fd, WFIFOW(fd, 2));
session[fd]->session_data = std::move(ld);