[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/protocols/msn
From:       Carlo Segato <brandon.ml () gmail ! com>
Date:       2008-02-20 22:51:32
Message-ID: 1203547892.556402.14094.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 777582 by segato:

Fix outgoing file transfer with official msn client
BUG: 155194


 M  +2 -1      dispatcher.cpp  


--- trunk/KDE/kdenetwork/kopete/protocols/msn/dispatcher.cpp #777581:777582
@@ -142,10 +142,11 @@
 	// TODO support file preview. For now disable file preview.
 	writer << (qint32)1;
 	// Write the file name in utf-16 to the stream.
-	QTextStream ts(header, QIODevice::WriteOnly);
+	QTextStream ts(&header, QIODevice::WriteOnly);
 	ts.setCodec(QTextCodec::codecForName("UTF-16"));
 	ts.device()->seek(20);
 	ts << path.section('/', -1);
+    ts.flush();
 	// NOTE Background Sharing base64 [540..569]
 	// TODO add support for background sharing.
 	// Write file exchange type to the stream.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic