--- xscreensaver-5.00/utils/erase.c.matherr2 2006-03-28 16:07:37.000000000 +0900
+++ xscreensaver-5.00/utils/erase.c 2006-05-26 01:45:00.000000000 +0900
@@ -451,7 +451,7 @@
{
st->cols = 10 + random() % 30;
size = st->width / st->cols;
- rows = (st->height / size) + 1;
+ rows = (size ? (st->height / size) : 0) + 1;
st->nlines = st->cols * rows;
st->lines = (int *) calloc (st->nlines, sizeof(*st->lines));
@@ -469,7 +469,7 @@
}
size = st->width / st->cols;
- rows = (st->height / size) + 1;
+ rows = (size ? (st->height / size) : 0) + 1;
for (i = st->nlines * st->prev_ratio;
i < st->nlines * st->ratio;