summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrerich Raabe <raabe@froglogic.com>2015-11-11 15:28:13 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2015-12-09 08:33:26 +0000
commitc0add2065a85b00791ad12c2f1afcde71c603513 (patch)
treee5caac69b50e5669abad922cebc80a511e5d93b3 /src
parent8283726e31a4ac28350346335bd485fca933141d (diff)
Fixed reading error output from sudo'ed process
The 'errBuf' buffer was never actually used for anything. Change-Id: Ia28b3ee3308ecff451afb518e0da8cf7125362d4 Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/libs/installer/adminauthorization_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/adminauthorization_x11.cpp b/src/libs/installer/adminauthorization_x11.cpp
index 91d33950c..e1b93ae87 100644
--- a/src/libs/installer/adminauthorization_x11.cpp
+++ b/src/libs/installer/adminauthorization_x11.cpp
@@ -175,7 +175,7 @@ bool AdminAuthorization::execute(QWidget *parent, const QString &program, const
errBytes = ::read(pipedData[0], errBuf, 1023);
if (errBytes > 0)
{
- errData.append(buf, errBytes);
+ errData.append(errBuf, errBytes);
errBytes=0;
}
if (bytes > 0) {