summaryrefslogtreecommitdiffstats
path: root/examples/example.c
diff options
context:
space:
mode:
authordscho <dscho>2004-02-04 07:59:03 +0000
committerdscho <dscho>2004-02-04 07:59:03 +0000
commit50a80e7304cea25104cec215da7c061a4998e6bd (patch)
tree0932fe5b648cea1bf6b2b37140addf41ca618f16 /examples/example.c
parent2fbf23c17ffbc03c5a4d4aa1bda55586e8f41a8e (diff)
downloadlibtdevnc-50a80e7304cea25104cec215da7c061a4998e6bd.tar.gz
libtdevnc-50a80e7304cea25104cec215da7c061a4998e6bd.zip
make examples g++ compileable, thanks to Juan Jose Costello
Diffstat (limited to 'examples/example.c')
-rw-r--r--examples/example.c2
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;