summaryrefslogtreecommitdiff
path: root/x11-toolkits/qt33/files/0076-fix-qprocess.diff
blob: 78716ee34bdfc4f1aca1e4841e55de97779cfd83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
qt-bugs@ issue : none
bugs.kde.org number : none
applied: no
author: from trolltech

Fixes a regression in QProgress::writeToStdin()


--- src/kernel/qprocess.cpp
+++ src/kernel/qprocess.cpp
@@ -727,7 +727,7 @@ void QProcess::closeStdinLaunch()
 void QProcess::writeToStdin( const QString& buf )
 {
     QByteArray tmp = buf.local8Bit();
-    tmp.resize( tmp.size() - 1 ); // drop the implicit \0
+    tmp.resize( qstrlen( tmp.data() ) );
     writeToStdin( tmp );
 }