From 50a80e7304cea25104cec215da7c061a4998e6bd Mon Sep 17 00:00:00 2001 From: dscho Date: Wed, 4 Feb 2004 07:59:03 +0000 Subject: make examples g++ compileable, thanks to Juan Jose Costello --- examples/example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/example.c') 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;jrichSource[j*w*bpp+i*bpp+0]=i*0xff/w; -- cgit v1.2.3