Hopefully fixed memory problem which causes sigabrt on free

trunk@386
Thomas Schmitt 16 years ago
parent cb42e2fcd9
commit fdfc4ebf36
  1. 2
      libburn/libdax_audioxtr.c

@ -30,7 +30,7 @@ int libdax_audioxtr_new(struct libdax_audioxtr **xtr, char *path, int flag)
int ret;
struct libdax_audioxtr *o;
o= *xtr= (struct libdax_audioxtr *)malloc(sizeof(struct libdax_audioxtr *));
o= *xtr= (struct libdax_audioxtr *) malloc(sizeof(struct libdax_audioxtr));
if(o==NULL)
return(-1);
strncpy(o->path,path,LIBDAX_AUDIOXTR_STRLEN-1);

Loading…
Cancel
Save