Changed all malloc() to calloc()

This commit is contained in:
2010-07-12 19:37:31 +00:00
parent 15266fb310
commit 2a48b34bcd
13 changed files with 29 additions and 34 deletions

View File

@ -1165,7 +1165,7 @@ int mmc_fake_toc(struct burn_drive *d)
if (d->disc == NULL)
return -1;
d->toc_entries = d->last_track_no + d->complete_sessions;
d->toc_entry = malloc(d->toc_entries * sizeof(struct burn_toc_entry));
d->toc_entry = calloc(d->toc_entries, sizeof(struct burn_toc_entry));
if (d->toc_entry == NULL)
return -1;
memset(d->toc_entry, 0,d->toc_entries * sizeof(struct burn_toc_entry));