X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbootchart%2Flog.c;h=43999f23cfa0b37843b3ec8da11d86b210b0f2a4;hb=b9a496c166c35f670b1f0fce8745bc5df5ea74ad;hp=1e3f4a9e8c9c1b359c212f6dda3a57e964bb6018;hpb=e90f9fa4d1cab6f73fc502fe9ef705c1bb2912a0;p=elogind.git diff --git a/src/bootchart/log.c b/src/bootchart/log.c index 1e3f4a9e8..43999f23c 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);