]> code.citadel.org Git - citadel.git/blobdiff - webcit/subst.c
fix dnamlen, they missed the e, so we need to follow.
[citadel.git] / webcit / subst.c
index a4200f8230c2fe7b413697e4a1cf42d5538cefad..7f9026229cb602eea7c5baefd4acee388cdff1c2 100644 (file)
@@ -758,7 +758,7 @@ void StrBufAppendTemplateStr(StrBuf *Target,
                break;
 */
        default:
-               StrBufAppendBufPlain(Target, Source, 0, 0);
+               StrBufAppendBufPlain(Target, Source, -1, 0);
        }
 }
 
@@ -1526,8 +1526,7 @@ int LoadTemplateDir(const StrBuf *DirName, HashList *big, const StrBuf *BaseKey)
                char *MinorPtr;
 
 #ifdef _DIRENT_HAVE_D_NAMLEN
-               d_namelen = filedir_entry->d_namelen;
-
+               d_namelen = filedir_entry->d_namlen;
 #else
                d_namelen = strlen(filedir_entry->d_name);
 #endif