# HG changeset patch # User reimar # Date 1162158746 0 # Node ID d03b71ab8b65ee606811cd5b49f00115674095eb # Parent 9324e1a02a8bfdecd869fc010dff7f0008971f47 Fix possible crash: negative values may no be passed to render_one_glyph diff -r 9324e1a02a8b -r d03b71ab8b65 libmenu/menu.c --- a/libmenu/menu.c Sun Oct 29 21:29:23 2006 +0000 +++ b/libmenu/menu.c Sun Oct 29 21:52:26 2006 +0000 @@ -294,7 +294,7 @@ } #ifdef HAVE_FREETYPE -#define render_txt(t) { char* p = t; while(*p) render_one_glyph(vo_font,*p++); } +#define render_txt(t) { unsigned char* p = t; while(*p) render_one_glyph(vo_font,*p++); } #else #define render_txt(t) #endif