From 192cb60ca24b92fe53ae6c375a39925e44c3cd83 Mon Sep 17 00:00:00 2001 From: "duncan%be.com" Date: Fri, 2 Jul 1999 13:55:01 +0000 Subject: [PATCH] D'oh, correctly size buffer for terminating '0' in fe_GetConfigDir. Change in code that is XP_BEOS only. --- lib/xp/xp_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xp/xp_file.c b/lib/xp/xp_file.c index e8b2168e42b..34aa83e6e9f 100644 --- a/lib/xp/xp_file.c +++ b/lib/xp/xp_file.c @@ -1733,7 +1733,7 @@ char *fe_GetConfigDir(void) char *config_dir; int len = strlen(path); - len += strlen("/mozilla"); + len += strlen("/mozilla") + 1; config_dir = (char *)XP_CALLOC(len, sizeof(char)); /* we really should use XP_STRN*_SAFE but this is MODULAR_NETLIB */