From: Wilfried Göesgens Date: Wed, 31 Dec 2008 14:37:38 +0000 (+0000) Subject: * fix trailing string appending in URLIZING for plaintext. X-Git-Tag: v7.86~1663 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=2118818bd933b8f0c694b7124c236aaa1f934a10 * fix trailing string appending in URLIZING for plaintext. --- diff --git a/webcit/html2html.c b/webcit/html2html.c index e331cda67..a91239d0a 100644 --- a/webcit/html2html.c +++ b/webcit/html2html.c @@ -542,7 +542,7 @@ void UrlizeText(StrBuf* Target, StrBuf *Source, StrBuf *WrkBuf) LB, QU, ChrPtr(WrkBuf), QU, QU, TARGET, QU, RB, ChrPtr(WrkBuf), LB, RB); - TrailerLen = len - (end - start); + TrailerLen = StrLength(Source) - (end - ChrPtr(Source)); if (TrailerLen > 0) StrBufAppendBufPlain(Target, end, TrailerLen, 0); }