summaryrefslogtreecommitdiff
path: root/genfontfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'genfontfile.c')
-rw-r--r--genfontfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/genfontfile.c b/genfontfile.c
index 41d87b79..bc171cf2 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",