fix wrong malloc size

This commit is contained in:
Eric Wasylishen 2011-01-19 23:12:56 -07:00
parent 6f44bebff8
commit 109bfc1ccf

View file

@ -31,7 +31,7 @@ struct resampler {
void *Snd_ResamplerInit()
{
struct resampler *data = malloc(sizeof(struct resampler *));
struct resampler *data = malloc(sizeof(struct resampler));
data->channels = 1;
data->st = speex_resampler_init(1, 44100, 44100, Snd_ResamplerQuality, NULL);
return data;