Fixed memory waste by oversized feature descriptor objects. Coverity CID 21.

This commit is contained in:
Thomas Schmitt 2015-10-26 18:36:05 +00:00
parent 7993b719a7
commit 9917a1ddeb
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2015.10.26.154728"
#define Cdrskin_timestamP "2015.10.26.183813"

View File

@ -3445,7 +3445,7 @@ int burn_feature_descr_new(struct burn_feature_descr **new,
*new = NULL;
if (descr_len < 4)
return 0;
(*new) = o = calloc(1, sizeof(struct burn_speed_descriptor));
(*new) = o = calloc(1, sizeof(struct burn_feature_descr));
if (o == NULL)
return -1;
o->feature_code = (descr[0] << 8) | descr[1];