mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
Fix buffer size in linuxNodeGetCPUstats
94f8205 added a space to the string but didn't change the buffer size. Signed-off-by: Bing Bu Cao <mars@linux.vnet.ibm.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
6b29eb848f
commit
2310e631cd
@ -691,7 +691,7 @@ linuxNodeGetCPUStats(FILE *procstat,
|
||||
char line[1024];
|
||||
unsigned long long usr, ni, sys, idle, iowait;
|
||||
unsigned long long irq, softirq, steal, guest, guest_nice;
|
||||
char cpu_header[3 + INT_BUFSIZE_BOUND(cpuNum)];
|
||||
char cpu_header[4 + INT_BUFSIZE_BOUND(cpuNum)];
|
||||
|
||||
if ((*nparams) == 0) {
|
||||
/* Current number of cpu stats supported by linux */
|
||||
|
Loading…
x
Reference in New Issue
Block a user