summaryrefslogtreecommitdiffstats
path: root/src/processexec.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 09:41:22 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 09:41:22 -0500
commitea3a9effca9bebfe18bfb7546da619ecbbb121f3 (patch)
tree54ceea8953098258666fe2459632470f5dc85c94 /src/processexec.cpp
parent191c434271e705161fbd01ed83b6d043a275bffc (diff)
downloadksensors-ea3a9effca9bebfe18bfb7546da619ecbbb121f3.tar.gz
ksensors-ea3a9effca9bebfe18bfb7546da619ecbbb121f3.zip
Apply build fixes
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)