Mercurial > hg > dmlib
changeset 396:1712cc35e9a1
Fixes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 19 Oct 2012 07:21:54 +0300 |
parents | 530db8fa4569 |
children | 9993873ff655 |
files | dmtimeline.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dmtimeline.c Fri Oct 19 07:21:39 2012 +0300 +++ b/dmtimeline.c Fri Oct 19 07:21:54 2012 +0300 @@ -26,7 +26,7 @@ points->npoints = npoints; points->nallocated = ((npoints / 16) + 1) * 16; - points->points = dmCalloc(npoints, sizeof(DMTimelinePoint)); + points->points = dmCalloc(points->nallocated, sizeof(DMTimelinePoint)); if (points->points == NULL) return DMERR_MALLOC; @@ -210,7 +210,7 @@ return DMERR_MALLOC; hdr.name[sizeof(hdr.name) - 1] = 0; - track->name = dm_strdup(hdr.name); + track->name = dm_strdup(hdr.name); track->enabled = hdr.enabled; track->nevents = hdr.nevents;