diff --git a/src/ChangeLog b/src/ChangeLog index ae874689..13436c66 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2002-08-03 Hrvoje Niksic + + * init.c (cmd_file): Allocate RESULT correctly. + 2002-07-24 Hrvoje Niksic * recur.c (retrieve_tree): Check whether downloaded_html_set is diff --git a/src/init.c b/src/init.c index 2afa3007..dec37441 100644 --- a/src/init.c +++ b/src/init.c @@ -689,7 +689,7 @@ cmd_file (const char *com, const char *val, void *closure) ; #endif - result = xmalloc (homelen + 1 + strlen (val)); + result = xmalloc (homelen + 1 + strlen (val) + 1); memcpy (result, home, homelen); result[homelen] = '/'; strcpy (result + homelen + 1, val);