Small fixes

This commit is contained in:
Michiel Broek
2002-05-12 12:47:18 +00:00
parent d04e45c286
commit 57a3751b32
3 changed files with 3 additions and 1 deletions

View File

@@ -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);