mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-17 06:54:42 +03:00
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;
|
||||
}
|
||||
|
||||
throb = malloc(sizeof(throb));
|
||||
throb = malloc(sizeof(*throb));
|
||||
throb->nframes = frames;
|
||||
throb->framedata = malloc(sizeof(GdkPixbuf *) * throb->nframes);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user