From: Wilfried Göesgens Date: Sun, 10 Jan 2010 21:14:15 +0000 (+0000) Subject: * hm, something is going wrong here. allocing bigger spaces here for filenames fixes... X-Git-Tag: v7.86~516 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=fdbf860f0a44b7a5cf2786f25f976d706ae42928 * hm, something is going wrong here. allocing bigger spaces here for filenames fixes it, fancily even valgrind doesn't show whats going wrong... --- diff --git a/webcit/subst.c b/webcit/subst.c index 36828a6cd..ca2a6975b 100644 --- a/webcit/subst.c +++ b/webcit/subst.c @@ -1626,7 +1626,7 @@ int LoadTemplateDir(const StrBuf *DirName, HashList *wireless, HashList *big, co Toplevel = StrLength(BaseKey) == 0; SubDirectory = NewStrBuf(); SubKey = NewStrBuf(); - FileName = NewStrBuf(); + FileName = NewStrBufPlain(NULL, PATH_MAX); Key = NewStrBuf(); while ((readdir_r(filedir, d, &filedir_entry) == 0) && (filedir_entry != NULL))