summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <[email protected]>2017-07-24 09:50:00 -0400
committerKurt Hindenburg <[email protected]>2017-07-24 10:38:31 -0400
commit2e74a1ba73ab96fd94effe50562ba374a5eeaa96 (patch)
tree24d9a21e3b4b0d7961e21d408e37faf45f0071c8
parentd10202fdc757236d09f6cb3804f987ace20e3025 (diff)
Fix regression in pty()->write() usage
Correct usage of pty()->write(const QByteArray) BUG: 355362 BUG: 382654 (cherry picked from commit 0cc7fecdd7bde4e427a17585e92e5248b013437e)
-rw-r--r--src/Pty.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Pty.cpp b/src/Pty.cpp
index 433406a..a66bac3 100644
--- a/src/Pty.cpp
+++ b/src/Pty.cpp
@@ -76,7 +76,7 @@ void Pty::sendData(const QByteArray &data)
return;
}
- if (pty()->write(data.constData()) == -1) {
+ if (pty()->write(data) == -1) {
qCDebug(KonsoleDebug) << "Could not send input data to terminal process.";
return;
}