X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fhtml2html.c;h=a91239d0a1a2fce03f64bae5b304cadd791b7277;hb=2118818bd933b8f0c694b7124c236aaa1f934a10;hp=e331cda67cc21f04347124d8399c9846b7601cf0;hpb=67917357773bfa5975de311d325dd3414c720a09;p=citadel.git 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); }