* hm, something is going wrong here. allocing bigger spaces here for filenames fixes...
authorWilfried Göesgens <willi@citadel.org>
Sun, 10 Jan 2010 21:14:15 +0000 (21:14 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 10 Jan 2010 21:14:15 +0000 (21:14 +0000)
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))