diff options
Diffstat (limited to 'src/bootchart/log.c')
-rw-r--r-- | src/bootchart/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootchart/log.c b/src/bootchart/log.c index 1e3f4a9e8c..43999f23cf 100644 --- a/src/bootchart/log.c +++ b/src/bootchart/log.c @@ -264,7 +264,7 @@ schedstat_next: ps = ps->next_ps; ps->pid = pid; - ps->sample = calloc(len + 1, sizeof(struct ps_sched_struct)); + ps->sample = calloc(samples_len + 1, sizeof(struct ps_sched_struct)); if (!ps->sample) { perror("calloc(ps_struct)"); exit (EXIT_FAILURE); |