X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fthornbird.c;h=c2edeb7c90f2d21ae0f5dfa84378ae733cd8e528;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=cb5541de2e99b9bc12e3c697f558c7971a03e997;hpb=4ade52359b6eba3621566dac79793a33aa4c915f;p=xscreensaver 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) {