mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
use correct type for buffer in QProcessPrivate::processStarted()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c1d1982ba8
commit
7ffaca65e0
1 changed files with 3 additions and 3 deletions
|
@ -659,8 +659,8 @@ void QProcessPrivate::execChild(const char *workingDir, char **path, char **argv
|
||||||
|
|
||||||
bool QProcessPrivate::processStarted()
|
bool QProcessPrivate::processStarted()
|
||||||
{
|
{
|
||||||
QSTACKARRAY(ushort, buf, errorBufferMax);
|
QSTACKARRAY(QChar, buf, errorBufferMax);
|
||||||
qint64 i = qt_safe_read(childStartedPipe[0], &buf, sizeof buf);
|
qint64 i = qt_safe_read(childStartedPipe[0], &buf, sizeof(buf));
|
||||||
if (startupSocketNotifier) {
|
if (startupSocketNotifier) {
|
||||||
startupSocketNotifier->setEnabled(false);
|
startupSocketNotifier->setEnabled(false);
|
||||||
startupSocketNotifier->deleteLater();
|
startupSocketNotifier->deleteLater();
|
||||||
|
@ -675,7 +675,7 @@ bool QProcessPrivate::processStarted()
|
||||||
|
|
||||||
// did we read an error message?
|
// did we read an error message?
|
||||||
if (i > 0)
|
if (i > 0)
|
||||||
q_func()->setErrorString(QString((const QChar *)buf, i / sizeof(QChar)));
|
q_func()->setErrorString(QString(buf, i / sizeof(QChar)));
|
||||||
|
|
||||||
return i <= 0;
|
return i <= 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue