]> code.citadel.org Git - citadel.git/commitdiff
* print the trail of the template
authorWilfried Göesgens <willi@citadel.org>
Sun, 24 Aug 2008 20:35:35 +0000 (20:35 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 24 Aug 2008 20:35:35 +0000 (20:35 +0000)
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;
                }
        }