From 2118818bd933b8f0c694b7124c236aaa1f934a10 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Wed, 31 Dec 2008 14:37:38 +0000 Subject: [PATCH] * fix trailing string appending in URLIZING for plaintext. --- webcit/html2html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2