summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kcpuload/kcpuload/kcpuproc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kcpuload/kcpuload/kcpuproc.cpp b/kcpuload/kcpuload/kcpuproc.cpp
index 7e5bc9b..f7fbe4f 100644
--- a/kcpuload/kcpuload/kcpuproc.cpp
+++ b/kcpuload/kcpuload/kcpuproc.cpp
@@ -171,7 +171,7 @@ void KCPUProc::readLoad() {
// ========== Linux-specific (begin) ==========
#ifdef Q_OS_LINUX
bool KCPUProc::CPU::parse(FILE* fd) {
- char tagbuffer[32];
+ char tagbuffer[32+1];
Ticks n; // new ticks
if (fscanf(fd, "%32s%d%d%d%d", tagbuffer, &n.U, &n.N, &n.S, &n.I) != 5) {
return false; // failure