diff options
author | Timothy Pearson <[email protected]> | 2013-07-24 09:41:22 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-07-24 09:41:22 -0500 |
commit | ea3a9effca9bebfe18bfb7546da619ecbbb121f3 (patch) | |
tree | 54ceea8953098258666fe2459632470f5dc85c94 /src/processexec.cpp | |
parent | 191c434271e705161fbd01ed83b6d043a275bffc (diff) | |
download | ksensors-ea3a9effca9bebfe18bfb7546da619ecbbb121f3.tar.gz ksensors-ea3a9effca9bebfe18bfb7546da619ecbbb121f3.zip |
Apply build fixes
Diffstat (limited to 'src/processexec.cpp')
-rw-r--r-- | src/processexec.cpp | 9 |
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) |