X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fthornbird.c;h=c2edeb7c90f2d21ae0f5dfa84378ae733cd8e528;hp=cb5541de2e99b9bc12e3c697f558c7971a03e997;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/thornbird.c b/hacks/thornbird.c index cb5541de..c2edeb7c 100644 --- a/hacks/thornbird.c +++ b/hacks/thornbird.c @@ -222,6 +222,7 @@ draw_thornbird(ModeInfo * mi) MI_IS_DRAWN(mi) = True; + if (MI_COUNT(mi) < 1) MI_COUNT(mi) = 1; if (hp->pointBuffer[erase] == NULL) { if ((hp->pointBuffer[erase] = (XPoint *) malloc(MI_COUNT(mi) * sizeof (XPoint))) == NULL) {