aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-19 22:00:10 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-19 22:00:10 +0200
commit64b52be7a7603b6d044a45fe878016df71986c0d (patch)
tree6518ccc6dd2fc4cf46e229c134301234df9f49f5
parent3d5ed034b3e5d088616001fc454afa7d926cd68b (diff)
Array init
-rw-r--r--FICS/adminproc.c6
1 files changed, 3 insertions, 3 deletions
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);