projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
efc8190
)
Merge pull request #3276 from chrismcn/upstream_turbostat
author
Matthias Runge
<mrunge@redhat.com>
Tue, 17 Sep 2019 12:04:41 +0000
(14:04 +0200)
committer
GitHub
<noreply@github.com>
Tue, 17 Sep 2019 12:04:41 +0000
(14:04 +0200)
Upstream turbostat
src/sysevent.c
patch
|
blob
|
history
diff --git
a/src/sysevent.c
b/src/sysevent.c
index
b63767d
..
aab5141
100644
(file)
--- a/
src/sysevent.c
+++ b/
src/sysevent.c
@@
-472,7
+472,7
@@
static int read_socket() {
} else {
DEBUG("sysevent plugin: writing %s", buffer);
- strncpy(ring.buffer[ring.head], buffer, sizeof(buffer));
+ s
s
trncpy(ring.buffer[ring.head], buffer, sizeof(buffer));
ring.timestamp[ring.head] = cdtime();
ring.head = next;
}