From 64b52be7a7603b6d044a45fe878016df71986c0d Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 19 May 2024 22:00:10 +0200 Subject: Array init --- FICS/adminproc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FICS') diff --git a/FICS/adminproc.c b/FICS/adminproc.c index ff931b7..1f55545 100644 --- a/FICS/adminproc.c +++ b/FICS/adminproc.c @@ -851,7 +851,7 @@ PUBLIC int com_remplayer(int p, param_list param) { char *player = param[0].val.word; - char playerlower[MAX_LOGIN_NAME]; + char playerlower[MAX_LOGIN_NAME] = { '\0' }; int p1, lookup; ASSERT(parray[p].adminLevel >= ADMIN_ADMIN); @@ -913,8 +913,8 @@ PUBLIC int com_raisedead(int p, param_list param) { char *player = param[0].val.word; - char newplayerlower[MAX_LOGIN_NAME]; - char playerlower[MAX_LOGIN_NAME]; + char newplayerlower[MAX_LOGIN_NAME] = { '\0' }; + char playerlower[MAX_LOGIN_NAME] = { '\0' }; int p1, p2, lookup; ASSERT(parray[p].adminLevel >= ADMIN_ADMIN); -- cgit v1.2.3