diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-03-12 22:09:20 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-03-12 22:09:20 -0300 |
commit | 31b1c5685377e10d045c3a39be842186e10108a3 (patch) | |
tree | 234d9426388afebf4ebc19f4db2664c4fa94ff10 | |
parent | d9aca15adb1f94a01aabd4e5d406cd44c4ba8d15 (diff) | |
download | hercules-31b1c5685377e10d045c3a39be842186e10108a3.tar.gz hercules-31b1c5685377e10d045c3a39be842186e10108a3.tar.bz2 hercules-31b1c5685377e10d045c3a39be842186e10108a3.tar.xz hercules-31b1c5685377e10d045c3a39be842186e10108a3.zip |
First attempt, if this fails, I'll comment the whole code block
-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; |