From 126439e49d775999c37c6d8944d627afe37d6d71 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 27 Apr 2026 00:01:29 +0200 Subject: Set the char arrays to zero --- FICS/fics_addplayer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'FICS/fics_addplayer.c') diff --git a/FICS/fics_addplayer.c b/FICS/fics_addplayer.c index 4da34ca..7b6ec30 100644 --- a/FICS/fics_addplayer.c +++ b/FICS/fics_addplayer.c @@ -65,7 +65,7 @@ PRIVATE void add_handle_to_list(const char *handle) { FILE *fp; - char path[1024]; + char path[1024] = { '\0' }; int fd; snprintf(path, sizeof path, "%s/admin", DEFAULT_LISTS); @@ -94,9 +94,9 @@ usage(char *progname) PUBLIC int main(int argc, char *argv[]) { - char password[PASSLEN + 1]; - char salt[FICS_SALT_SIZE]; - char text[2048]; + char password[PASSLEN + 1] = { '\0' }; + char salt[FICS_SALT_SIZE] = { '\0' }; + char text[2048] = { '\0' }; int i; int p; -- cgit v1.2.3