summaryrefslogtreecommitdiff
path: root/src/login/login.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-07-10 18:08:42 +0200
committerHaru <haru@dotalux.com>2016-07-10 18:09:14 +0200
commitf269a1d050be968368287fd510fcdc6552c9639f (patch)
tree2ec52a94698636ce23d0cb771bea374b704c38c4 /src/login/login.c
parent72bb5184144dad528168c3dcf783284ea2d32870 (diff)
downloadhercules-f269a1d050be968368287fd510fcdc6552c9639f.tar.gz
hercules-f269a1d050be968368287fd510fcdc6552c9639f.tar.bz2
hercules-f269a1d050be968368287fd510fcdc6552c9639f.tar.xz
hercules-f269a1d050be968368287fd510fcdc6552c9639f.zip
Fixed some issues with NULL dates in the login table
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/login/login.c')
-rw-r--r--src/login/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 49508d564..a8ba3d9b7 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -1024,7 +1024,7 @@ int login_mmo_auth_new(const char* userid, const char* pass, const char sex, con
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;
- safestrncpy(acc.lastlogin, "0000-00-00 00:00:00", sizeof(acc.lastlogin));
+ safestrncpy(acc.lastlogin, "(never)", sizeof(acc.lastlogin));
safestrncpy(acc.last_ip, last_ip, sizeof(acc.last_ip));
safestrncpy(acc.birthdate, "0000-00-00", sizeof(acc.birthdate));
safestrncpy(acc.pincode, "\0", sizeof(acc.pincode));