Fix overflow spotted by jmb/valgrind.
svn path=/trunk/netsurf/; revision=4800
This commit is contained in:
parent
1c6012aae5
commit
806d362674
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue