From a4cc897222b8cbfb621d27c7c9f070dbbb05def9 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Wed, 4 Nov 2009 23:18:36 +0800 Subject: Fix various compilation warnings Signed-off-by: Vic Lee Signed-off-by: Johannes Schindelin --- 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 71548fa..871ab0c 100644 --- a/examples/example.c +++ b/examples/example.c @@ -263,7 +263,7 @@ static void MakeRichCursor(rfbScreenInfoPtr rfbScreen) c=rfbScreen->cursor = rfbMakeXCursor(w,h,bitmap,bitmap); c->xhot = 16; c->yhot = 24; - c->richSource = (char*)malloc(w*h*bpp); + c->richSource = (unsigned char*)malloc(w*h*bpp); c->cleanupRichSource = TRUE; for(j=0;j