diff options
-rw-r--r-- | src/login/login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/login.c b/src/login/login.c index 68b53608f..07cb42bfd 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1036,7 +1036,7 @@ static int login_mmo_auth_new(const char *userid, const char *pass, const char s char *spass; spass = (char *)aMalloc((64+1)*sizeof(char)); md5->sha256(pass, spass); - safestrncpy(acc.pass, spass, sizeof(acc.pass)); + safestrncpy(acc.pass, spass, sizeof(spass)); acc.sex = sex; safestrncpy(acc.email, "a@a.com", sizeof(acc.email)); acc.expiration_time = (login->config->start_limited_time != -1) ? time(NULL) + login->config->start_limited_time : 0; |