From 1febf785558a274a11a9f3dab228a13ff079738b Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 12 Nov 2007 15:24:49 +0000 Subject: [PATCH] Monotone-Parent: e5b892047b9dff77f3c62099c2d38c32b605e24c Monotone-Revision: 231d9f088984bb0dc975e90ac754e3c646546493 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-12T15:24:49 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ UI/MailPartViewers/UIxMailPartTextViewer.m | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e7cd85b12..bd3c795ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-12 Wolfgang Sourdeau + + * UI/MailPartViewers/UIxMailPartTextViewer.m ([NSString + -stringByConvertingCRLNToHTML]): build the returned NSString + without the ending \0. + 2007-11-09 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartICalViewer.m diff --git a/UI/MailPartViewers/UIxMailPartTextViewer.m b/UI/MailPartViewers/UIxMailPartTextViewer.m index d4ff0ccdc..6e9b6a26a 100644 --- a/UI/MailPartViewers/UIxMailPartTextViewer.m +++ b/UI/MailPartViewers/UIxMailPartTextViewer.m @@ -83,7 +83,7 @@ *destChar = 0; convertedString = [[NSString alloc] initWithBytes: newString - length: (destChar + 1 - newString) + length: (destChar - newString) encoding: NSUTF8StringEncoding]; [convertedString autorelease]; free (newString);