summaryrefslogtreecommitdiffstats
path: root/examples/copyrecttest.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/copyrecttest.c
parent2fbf23c17ffbc03c5a4d4aa1bda55586e8f41a8e (diff)
downloadlibtdevnc-50a80e7304cea25104cec215da7c061a4998e6bd.tar.gz
libtdevnc-50a80e7304cea25104cec215da7c061a4998e6bd.zip
make examples g++ compileable, thanks to Juan Jose Costello
Diffstat (limited to 'examples/copyrecttest.c')
-rw-r--r--examples/copyrecttest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/copyrecttest.c b/examples/copyrecttest.c
index 8186e8e..ff278b4 100644
--- a/examples/copyrecttest.c
+++ b/examples/copyrecttest.c
@@ -19,7 +19,7 @@ int main(int argc,char** argv)
double r,phi;
rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,width,height,8,3,4);
- server->frameBuffer=malloc(width*height*4);
+ server->frameBuffer=(char*)malloc(width*height*4);
initBackground(server);
server->rfbDeferUpdateTime=0;
rfbInitServer(server);