changeset 19204:17acc0a995e2

Fixes the format string for the warning message on line 182 (%x with long argument, %c with long argument). Also, font_load_ft calls iconv with int pointers instead of size_t pointers for (in|out)bytesleft. patch by Tobias Diedrich, ranma ##at## tdiedrich ##dot## de
author diego
date Fri, 28 Jul 2006 08:10:37 +0000
parents e01c2017f4da
children 3f01e230c898
files libvo/font_load_ft.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/font_load_ft.c	Thu Jul 27 21:06:13 2006 +0000
+++ b/libvo/font_load_ft.c	Fri Jul 28 08:10:37 2006 +0000
@@ -179,8 +179,8 @@
 	else {
 	    glyph_index = FT_Get_Char_Index(face, uni_charmap ? character:code);
 	    if (glyph_index==0) {
-		WARNING("Glyph for char 0x%02x|U+%04X|%c not found.", code, character,
-			code<' '||code>255 ? '.':code);
+		WARNING("Glyph for char 0x%02lx|U+%04lX|%c not found.", code, character,
+			code<' '||code>255 ? '.':(char)code);
 		desc->font[unicode?character:code] = -1;
 		continue;
 	    }
@@ -737,8 +737,8 @@
     FT_ULong o;
     char *inbuf = &c;
     char *outbuf = (char*)&o;
-    int inbytesleft = 1;
-    int outbytesleft = sizeof(FT_ULong);
+    size_t inbytesleft = 1;
+    size_t outbytesleft = sizeof(FT_ULong);
 
     iconv(*cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft);