summaryrefslogtreecommitdiffstats
path: root/examples/simple15.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple15.c')
-rw-r--r--examples/simple15.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple15.c b/examples/simple15.c
index 12583ba..faff4f7 100644
--- a/examples/simple15.c
+++ b/examples/simple15.c
@@ -10,7 +10,7 @@ int main(int argc,char** argv)
rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,400,300,5,3,2);
- server->frameBuffer=malloc(400*300*2);
+ server->frameBuffer=(char*)malloc(400*300*2);
f=(uint16_t*)server->frameBuffer;
for(j=0;j<300;j++)
for(i=0;i<400;i++)