Changeset 4a9e3e0e1071493950e5583f5f14bf136388ea28

Show
Ignore:
Timestamp:
06/06/09 21:16:37 (3 years ago)
Author:
Nedko Arnaudov <nedko@…>
Children:
3010d4f0be78945081ab902fdf2fbe336d1d7098
Parents:
f39d91d10209bd8db7b241fe3bb693fba162e99d
git-committer:
Nedko Arnaudov <nedko@arnaudov.name> / 2009-06-06T21:16:37Z+0300
Message:

Fix memory corruption on 64bit. Found by Peter Nelson.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • filter.c

    r3969583 r4a9e3e0  
    157157  } 
    158158 
    159   filter_ptr->band_parameters = calloc(bands_count, sizeof(float) * BAND_PARAMETERS_COUNT); 
     159  filter_ptr->band_parameters = calloc(bands_count, sizeof(float *) * BAND_PARAMETERS_COUNT); 
    160160  if (filter_ptr->band_parameters == NULL) 
    161161  {