summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontends/beos/throbber.cpp2
1 files changed, 1 insertions, 1 deletions
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);