diff libmenu/menu.c @ 20507:d03b71ab8b65

Fix possible crash: negative values may no be passed to render_one_glyph
author reimar
date Sun, 29 Oct 2006 21:52:26 +0000
parents ac69ba536915
children 14061bc22cb3
line wrap: on
line diff
--- 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