summaryrefslogtreecommitdiff
path: root/src/ladmin
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-10 17:57:57 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-10 17:57:57 +0000
commitef96dc4ab24074431b4d7463cfc0a6077fcd311e (patch)
treeebe0b21d5fec3a8f230403d4102e0fef8fcaa0bf /src/ladmin
parent1369e505925eef0f8e5888e12448e3daabb29525 (diff)
downloadhercules-ef96dc4ab24074431b4d7463cfc0a6077fcd311e.tar.gz
hercules-ef96dc4ab24074431b4d7463cfc0a6077fcd311e.tar.bz2
hercules-ef96dc4ab24074431b4d7463cfc0a6077fcd311e.tar.xz
hercules-ef96dc4ab24074431b4d7463cfc0a6077fcd311e.zip
- Fixed compile errors in adduser.c and ladmin.c under win platforms.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6553 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/ladmin')
-rw-r--r--src/ladmin/ladmin.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ladmin/ladmin.c b/src/ladmin/ladmin.c
index 8a3877dc4..27a95e171 100644
--- a/src/ladmin/ladmin.c
+++ b/src/ladmin/ladmin.c
@@ -3295,9 +3295,7 @@ int parse_fromlogin(int fd) {
if (RFIFOREST(fd) < 4 || RFIFOREST(fd) < RFIFOW(fd,2))
return 0;
{
- char md5str[64] = "", md5bin[32], md5key[RFIFOW(fd,2) - 4 + 1];
- memcpy(md5key, RFIFOP(fd,4), RFIFOW(fd,2) - 4);
- md5key[sizeof(md5key)-1] = '0';
+ char md5str[64] = "", md5bin[32];
if (passenc == 1) {
strncpy(md5str, (const char*)RFIFOP(fd,4), RFIFOW(fd,2) - 4);
strcat(md5str, loginserveradminpassword);