summaryrefslogtreecommitdiffstats
path: root/src/processexec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/processexec.cpp')
-rw-r--r--src/processexec.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/processexec.cpp b/src/processexec.cpp
index a6137c0..ac2825c 100644
--- a/src/processexec.cpp
+++ b/src/processexec.cpp
@@ -37,17 +37,12 @@ bool ProcessExec::run()
bool ProcessExec::runAndWait()
{
clearData();
- return start(Block,Communication(Stdout|Stderr));
+ return start(Block,Communication(Stdout | Stderr));
}
void ProcessExec::slotReceivedStdout(KProcess *proc, char *buf, int len)
{
- if(bufLen+len>=bufMax) len= bufMax-bufLen;
- if(len) {
- memcpy(buffer+bufLen,buf,len);
- bufLen+= len;
- buffer[bufLen]=0;
- }
+ buffer = QString(buf);
}
void ProcessExec::slotReceivedStderr(KProcess *proc, char *buf, int len)