diff options
Diffstat (limited to 'genfontfile.c')
-rw-r--r-- | genfontfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/genfontfile.c b/genfontfile.c index 41d87b7..bc171cf 100644 --- a/genfontfile.c +++ b/genfontfile.c @@ -179,7 +179,7 @@ SuckGlyphsFromServer(Display * dpy, Font font) charHeight = charinfo->ascent + charinfo->descent; spanLength = (charWidth + 7) / 8; } - bitmapData = calloc(height * spanLength, sizeof(char)); + bitmapData = (unsigned char *)calloc(height * spanLength, sizeof(char)); if (!bitmapData) goto FreeFontAndReturn; DEBUG_GLYPH4("index %d, glyph %d (%d by %d)\n", |