Commit dfdb1114 authored by Daniel Cohen Gindi's avatar Daniel Cohen Gindi Committed by Johannes Schindelin

Perform pointer arithmetic on char * instead of void *

Microsoft Visual C++ does not allow pointer arithmetic on void pointers.

[JES: fixed commit message]
Signed-off-by: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
parent e26aeb40
...@@ -189,7 +189,7 @@ HandleZRLE (rfbClient* client, int rx, int ry, int rw, int rh) ...@@ -189,7 +189,7 @@ HandleZRLE (rfbClient* client, int rx, int ry, int rw, int rh)
} /* while ( remaining > 0 ) */ } /* while ( remaining > 0 ) */
if ( inflateResult == Z_OK ) { if ( inflateResult == Z_OK ) {
void* buf=client->raw_buffer; char* buf=client->raw_buffer;
int i,j; int i,j;
remaining = client->raw_buffer_size-client->decompStream.avail_out; remaining = client->raw_buffer_size-client->decompStream.avail_out;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment