File r920617.diff of Package kdepimlibs4

Subject: kcal: Fix iCal export due to wrongly discarded last byte (porting bug)
From: wstephenson@suse.de
Bug: kde#182224
Patch-upstream: 920617
--- kcal/icalformat.cpp	(revision 920616)
+++ kcal/icalformat.cpp	(revision 920617)
@@ -131,7 +131,7 @@ bool ICalFormat::save( Calendar *calenda
 
   // Convert to UTF8 and save
   QByteArray textUtf8 = text.toUtf8();
-  file.write( textUtf8.data(), textUtf8.size() - 1 );
+  file.write( textUtf8.data(), textUtf8.size() );
 
   if ( !file.finalize() ) {
     kDebug() << "err:" << file.errorString();
Index: kcal/icalformat.cpp
===================================================================
openSUSE Build Service is sponsored by