summaryrefslogtreecommitdiff
path: root/genfontfile.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-10-23 14:24:17 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-10-23 14:24:17 +0200
commit5105187701a407e99a05e3e87bbf93aa28edfa40 (patch)
tree8db0972e3baf03fb8fc12ef0cba340a65c0c4271 /genfontfile.c
parent8ce024709102ac8293af1b7745a244e473df166e (diff)
downloadvdr-5105187701a407e99a05e3e87bbf93aa28edfa40.tar.gz
vdr-5105187701a407e99a05e3e87bbf93aa28edfa40.tar.bz2
Some minor code cleanups
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",