From ea3a9effca9bebfe18bfb7546da619ecbbb121f3 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 09:41:22 -0500 Subject: Apply build fixes --- src/processexec.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/processexec.cpp') 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) -- cgit v1.2.1