You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
516 B
20 lines
516 B
qt-bugs@ issue : none
|
|
bugs.kde.org number : none
|
|
applied: no
|
|
author: from trolltech
|
|
|
|
Fixes a regression in QProgress::writeToStdin()
|
|
|
|
|
|
--- work/qt-x11-free-3.3.8/src/kernel/qprocess.cpp
|
|
+++ work/qt-x11-free-3.3.8/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( tqstrlen( tmp.data() ) );
|
|
writeToStdin( tmp );
|
|
}
|
|
|