summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/login_sql/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index 4b3c4c4a2..5929e9748 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -809,7 +809,7 @@ int parse_fromchar(int fd)
if (sql_res) {
sql_row = mysql_fetch_row(sql_res);
connect_until_time = atol(sql_row[1]);
- strcpy(email, sql_row[0]);
+ strncpy(email, sql_row[0], 40); email[39] = 0;
mysql_free_result(sql_res);
}
WFIFOW(fd,0) = 0x2713;