From 57a3751b3296493f3b71ba5d05c5e1675687f298 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 12 May 2002 12:47:18 +0000 Subject: [PATCH] Small fixes --- lib/nodelist.c | 2 +- mbfido/forward.c | 1 + mbfido/virscan.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/nodelist.c b/lib/nodelist.c index 85142329..dfca2f49 100644 --- a/lib/nodelist.c +++ b/lib/nodelist.c @@ -234,7 +234,7 @@ node *getnlent(faddr *addr) /* * First, lookup node in index. NOTE -- NOT 5D YET */ - path = calloc(128, sizeof(char)); + path = calloc(PATH_MAX, sizeof(char)); sprintf(path, "%s/%s", CFG.nodelists, "node.index"); if ((fp = fopen(path, "r")) == NULL) { WriteError("$Can't open %s", path); diff --git a/mbfido/forward.c b/mbfido/forward.c index d5a0cbec..20ff8fe5 100644 --- a/mbfido/forward.c +++ b/mbfido/forward.c @@ -316,6 +316,7 @@ void ForwardFile(fidoaddr Node, fa_list *sbl) SearchNode(Node); free(ticfile); free(fwdfile); + tidy_faddr(route); } diff --git a/mbfido/virscan.c b/mbfido/virscan.c index 5de40399..8fe4ba7b 100644 --- a/mbfido/virscan.c +++ b/mbfido/virscan.c @@ -69,6 +69,7 @@ int VirScan(void) fclose(fp); } + free(temp); return rc; }