From 366c0fccf55b43ff5051b8172374fb9caf011200 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 12 Oct 2006 22:26:42 +0000 Subject: possibly fix crash on last glyph page? --- xlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlib.c b/xlib.c index 14a3a13..5ad8469 100644 --- a/xlib.c +++ b/xlib.c @@ -147,8 +147,8 @@ int uudisp_open(struct uudisp *d) XMatchVisualInfo(p->display, p->screen, 1, StaticGray, &vi); image = XCreateImage(p->display, - vi.visual, 1, XYBitmap, (-d->cell_w)&7, g, - d->cell_w, d->cell_h * 1024, 8, 0); + vi.visual, 1, XYBitmap, (-d->cell_w)&7, g, d->cell_w, + d->cell_h*(i+1display, p->glyph_cache[i], gc, image, 0, 0, 0, 0, d->cell_w, d->cell_h * 1024); -- cgit v1.2.3