From b40cfe1302cf84686bf56c0eb8a04553e2053c13 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 13 Apr 2006 14:23:04 +0000 Subject: [PATCH] * Ugly overflow bug in the rendering code. --- cucul/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cucul/font.c b/cucul/font.c index 01529ed..b6dfb50 100644 --- a/cucul/font.c +++ b/cucul/font.c @@ -275,7 +275,7 @@ void cucul_render_canvas(cucul_t *qq, struct cucul_font *f, for(i = 0; i < g->width; i++) { - uint8_t *pixel = line + 4 * (startx + i); + uint8_t *pixel = line + 4 * i; uint32_t p, q, t; p = glyph[j * g->width + i];