Fix overflow spotted by jmb/valgrind.

svn path=/trunk/netsurf/; revision=4800
This commit is contained in:
Rob Kendrick 2008-07-29 14:46:06 +00:00
parent 1c6012aae5
commit 806d362674
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ bool nsgtk_throbber_initialise_from_png(const int frames, ...)
return false; return false;
} }
throb = malloc(sizeof(throb)); throb = malloc(sizeof(*throb));
throb->nframes = frames; throb->nframes = frames;
throb->framedata = malloc(sizeof(GdkPixbuf *) * throb->nframes); throb->framedata = malloc(sizeof(GdkPixbuf *) * throb->nframes);