summaryrefslogtreecommitdiffstats
path: root/examples/colourmaptest.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/colourmaptest.c')
-rw-r--r--examples/colourmaptest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/colourmaptest.c b/examples/colourmaptest.c
index 9a86197..156781c 100644
--- a/examples/colourmaptest.c
+++ b/examples/colourmaptest.c
@@ -21,7 +21,7 @@ int main(int argc,char** argv)
bytes[128*3+2]=0;
server->colourMap.data.bytes=bytes;
- server->frameBuffer=malloc(256*256);
+ server->frameBuffer=(char*)malloc(256*256);
for(i=0;i<256*256;i++)
server->frameBuffer[i]=(i/256);