diff options
author | dscho <dscho> | 2004-02-04 07:59:03 +0000 |
---|---|---|
committer | dscho <dscho> | 2004-02-04 07:59:03 +0000 |
commit | 50a80e7304cea25104cec215da7c061a4998e6bd (patch) | |
tree | 0932fe5b648cea1bf6b2b37140addf41ca618f16 /examples/vncev.c | |
parent | 2fbf23c17ffbc03c5a4d4aa1bda55586e8f41a8e (diff) | |
download | libtdevnc-50a80e7304cea25104cec215da7c061a4998e6bd.tar.gz libtdevnc-50a80e7304cea25104cec215da7c061a4998e6bd.zip |
make examples g++ compileable, thanks to Juan Jose Costello
Diffstat (limited to 'examples/vncev.c')
-rw-r--r-- | examples/vncev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/vncev.c b/examples/vncev.c index e1f6dcc..34128f7 100644 --- a/examples/vncev.c +++ b/examples/vncev.c @@ -44,7 +44,7 @@ void read_keys() for(j=0,i+=2;(k=hex2number(buffer[i]))>=0;i++) j=j*16+k; if(keys[j&0x3ff]) { - char* x=malloc(1+strlen(keys[j&0x3ff])+1+strlen(buffer+strlen("#define "))); + char* x=(char*)malloc(1+strlen(keys[j&0x3ff])+1+strlen(buffer+strlen("#define "))); strcpy(x,keys[j&0x3ff]); strcat(x,","); strcat(x,buffer+strlen("#define ")); |