aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-03-16 15:04:18 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-03-16 15:04:18 +0100
commit44e222296843dafcdc43e6403442ab579dff8f56 (patch)
tree2ba87a37096d3f7b4071642a6154533a97a91a1f /FICS/utils.c
parent7b43af3149b3cd816f1674a2096c8f71a157d920 (diff)
Initialized buffers with null chars
Diffstat (limited to 'FICS/utils.c')
-rw-r--r--FICS/utils.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index c7d6774..deb2581 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -377,8 +377,8 @@ PUBLIC int
psend_raw_file(int p, char *dir, char *file)
{
FILE *fp;
- char fname[MAX_FILENAME_SIZE];
- char tmp[MAX_LINE_SIZE];
+ char fname[MAX_FILENAME_SIZE] = { '\0' };
+ char tmp[MAX_LINE_SIZE] = { '\0' };
int num;
if (dir)
@@ -402,8 +402,8 @@ PUBLIC int
psend_file(int p, char *dir, char *file)
{
FILE *fp;
- char fname[MAX_FILENAME_SIZE];
- char tmp[MAX_LINE_SIZE];
+ char fname[MAX_FILENAME_SIZE] = { '\0' };
+ char tmp[MAX_LINE_SIZE] = { '\0' };
int lcount = (parray[p].d_height - 1);
if (parray[p].last_file)
@@ -444,8 +444,8 @@ PUBLIC int
psend_logoutfile(int p, char *dir, char *file)
{
FILE *fp;
- char fname[MAX_FILENAME_SIZE];
- char tmp[MAX_LINE_SIZE];
+ char fname[MAX_FILENAME_SIZE] = { '\0' };
+ char tmp[MAX_LINE_SIZE] = { '\0' };
if (parray[p].last_file)
rfree(parray[p].last_file);