From 0a6e8fc0b072da21c7ec9c8d602b7ffad6bd4100 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 11 Sep 2017 17:42:49 +0100 Subject: fix beos throbber allocation --- frontends/beos/throbber.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/beos') diff --git a/frontends/beos/throbber.cpp b/frontends/beos/throbber.cpp index 27ed42352..315afef83 100644 --- a/frontends/beos/throbber.cpp +++ b/frontends/beos/throbber.cpp @@ -64,7 +64,7 @@ bool nsbeos_throbber_initialise_from_png(const int frames, ...) return false; } - throb = (struct nsbeos_throbber *)malloc(sizeof(throb)); + throb = (struct nsbeos_throbber *)malloc(sizeof(*throb)); throb->nframes = frames; throb->framedata = (BBitmap **)malloc(sizeof(BBitmap *) * throb->nframes); -- cgit v1.2.3