summaryrefslogtreecommitdiffstats
path: root/examples/colourmaptest.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/colourmaptest.c
parent2fbf23c17ffbc03c5a4d4aa1bda55586e8f41a8e (diff)
downloadlibtdevnc-50a80e7304cea25104cec215da7c061a4998e6bd.tar.gz
libtdevnc-50a80e7304cea25104cec215da7c061a4998e6bd.zip
make examples g++ compileable, thanks to Juan Jose Costello
Diffstat (limited to 'examples/colourmaptest.c')
-rw-r--r--examples/colourmaptest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/colourmaptest.c b/examples/colourmaptest.c
index 9a86197..156781c 100644
--- a/examples/colourmaptest.c
+++ b/examples/colourmaptest.c
@@ -21,7 +21,7 @@ int main(int argc,char** argv)
bytes[128*3+2]=0;
server->colourMap.data.bytes=bytes;
- server->frameBuffer=malloc(256*256);
+ server->frameBuffer=(char*)malloc(256*256);
for(i=0;i<256*256;i++)
server->frameBuffer[i]=(i/256);