]> code.citadel.org Git - citadel.git/blobdiff - webcit/subst.c
* print the trail of the template
[citadel.git] / webcit / subst.c
index 8acbcc2dc766e497599d23ad7967beab97882e5b..215515ea36b61fed0163f5ba6df671984430d130 100644 (file)
@@ -699,7 +699,7 @@ void ProcessTemplate(WCTemplate *Tmpl, StrBuf *Target, void *Context)
                                }
                        }
                        pData = Tmpl->Tokens[i++]->pTokenEnd + 1;
-                       if (i >= Tmpl->nTokensUsed)
+                       if (i > Tmpl->nTokensUsed)
                                done = 1;
                }
        }