]> code.citadel.org Git - citadel.git/blobdiff - webcit/webserver.c
* don't ignore the last char of a template
[citadel.git] / webcit / webserver.c
index 5c107f3821094480ffe957903b40804e030eacf7..480cdcf0d4dde6639f2eba37037ad16083c6a332 100644 (file)
@@ -699,6 +699,16 @@ int main(int argc, char **argv)
        SortHash = NewHash(1, NULL);
 
        LoadZoneFiles();
+       StrBuf *foo=NewStrBufPlain("", -1);
+       StrBuf *bar = NewStrBufPlain("A", -1);
+
+       StrBufExtract_token(bar, foo, 0, '|');
+       StrBufExtract_token(bar, foo, 1, '|');
+       StrBufExtract_token(bar, foo, 2, '|');
+       StrBufExtract_token(bar, foo, 3, '|');
+       StrBufExtract_token(bar, foo, 4, '|');
+       StrBufExtract_token(bar, foo, 5, '|');
+       StrBufExtract_token(bar, foo, 6, '|');
 
 #ifdef DBG_PRINNT_HOOKS_AT_START
        dbg_PrintHash(HandlerHash, nix, NULL);