]> code.citadel.org Git - citadel.git/blobdiff - webcit/subst.c
* hm, something is going wrong here. allocing bigger spaces here for filenames fixes...
[citadel.git] / webcit / subst.c
index 36828a6cddd48d4d2811e8c8b4156bfcb406746c..ca2a6975bf4a1f14c0fac585ddb2e1534a5a43c6 100644 (file)
@@ -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))