fix pointer indirection to get the right escaper.
authorWilfried Goesgens <dothebart@citadel.org>
Tue, 19 Jul 2011 21:45:32 +0000 (21:45 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 21:38:15 +0000 (21:38 +0000)
webcit/subst.c

index cf6c9e130399ad5a3e051141377dfde810c26397..3b234f042eb11a9d2879e4f3b871cc910c7694f8 100644 (file)
@@ -627,7 +627,7 @@ void StrBufAppendTemplate(StrBuf *Target,
            (TP->Tokens->Params[FormatTypeIndex]->Type == TYPE_STR) &&
            (TP->Tokens->Params[FormatTypeIndex]->len >= 1)) {
                pFmt = TP->Tokens->Params[FormatTypeIndex]->Start;
-               EscapeAs = pFmt;
+               EscapeAs = *pFmt;
        }
 
        switch(EscapeAs)