changeset 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 9324e1a02a8b
children f74eb19ac068
files libmenu/menu.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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