Author: pbartok
Date: 2005-12-05 22:54:58 -0500 (Mon, 05 Dec 2005)
New Revision: 53965

Modified:
   trunk/libgdiplus/src/font.c
Log:
- gcc4 fixes


Modified: trunk/libgdiplus/src/font.c
===================================================================
--- trunk/libgdiplus/src/font.c 2005-12-06 03:50:40 UTC (rev 53964)
+++ trunk/libgdiplus/src/font.c 2005-12-06 03:54:58 UTC (rev 53965)
@@ -573,13 +573,13 @@
                return GenericError;
        }
 
-       result->face = GdipAlloc(strlen((unsigned char *)str) + 1);
+       result->face = GdipAlloc(strlen((char *)str) + 1);
        if (!result->face) {
                GdipFree(result);
                return OutOfMemory;
        }
 
-       memcpy(result->face, str, strlen((unsigned char *)str) + 1);
+       memcpy(result->face, str, strlen((char *)str) + 1);
 
        result->cairofnt = cairofnt;
         result->style = style;
@@ -680,7 +680,7 @@
 
        logFont->lfPitchAndFamily = 0;
        if (ucs2) {
-               utf8_to_ucs2(font->face, (gunichar2 *)logFont->lfFaceName, 
LF_FACESIZE);
+               utf8_to_ucs2((const gchar *)font->face, (gunichar2 
*)logFont->lfFaceName, LF_FACESIZE);
        } else {
                memcpy(logFont->lfFaceName, font->face, LF_FACESIZE);
                logFont->lfFaceName[LF_FACESIZE - 1] = '\0';
@@ -713,13 +713,13 @@
        } else {
                slant = CAIRO_FONT_SLANT_NORMAL;
        }
-       result->face = GdipAlloc(strlen((unsigned char *)src_font->face) + 1);
+       result->face = GdipAlloc(strlen((char *)src_font->face) + 1);
        if (!result->face) {
                GdipFree(result);
                return OutOfMemory;
        }
 
-       memcpy(result->face, src_font->face, strlen((unsigned char 
*)src_font->face) + 1);
+       memcpy(result->face, src_font->face, strlen((char *)src_font->face) + 
1);
 
        result->cairofnt = _cairo_toy_font_face_create ((const char*) 
src_font->face, slant, weight);
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to