diff options
Diffstat (limited to 'examples/example.c')
-rw-r--r-- | examples/example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example.c b/examples/example.c index 23522ab..9a12579 100644 --- a/examples/example.c +++ b/examples/example.c @@ -258,7 +258,7 @@ void MakeRichCursor(rfbScreenInfoPtr rfbScreen) c=rfbScreen->cursor = rfbMakeXCursor(w,h,bitmap,bitmap); c->xhot = 16; c->yhot = 24; - c->richSource = malloc(w*h*bpp); + c->richSource = (char*)malloc(w*h*bpp); for(j=0;j<h;j++) { for(i=0;i<w;i++) { c->richSource[j*w*bpp+i*bpp+0]=i*0xff/w; |