mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +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()
|
||||
{
|
||||
QSTACKARRAY(ushort, buf, errorBufferMax);
|
||||
qint64 i = qt_safe_read(childStartedPipe[0], &buf, sizeof buf);
|
||||
QSTACKARRAY(QChar, buf, errorBufferMax);
|
||||
qint64 i = qt_safe_read(childStartedPipe[0], &buf, sizeof(buf));
|
||||
if (startupSocketNotifier) {
|
||||
startupSocketNotifier->setEnabled(false);
|
||||
startupSocketNotifier->deleteLater();
|
||||
|
@ -675,7 +675,7 @@ bool QProcessPrivate::processStarted()
|
|||
|
||||
// did we read an error message?
|
||||
if (i > 0)
|
||||
q_func()->setErrorString(QString((const QChar *)buf, i / sizeof(QChar)));
|
||||
q_func()->setErrorString(QString(buf, i / sizeof(QChar)));
|
||||
|
||||
return i <= 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue