|
|
@ -111,10 +111,9 @@ rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
initAppData(&client->appData);
|
|
|
|
initAppData(&client->appData);
|
|
|
|
client->programName = NULL;
|
|
|
|
|
|
|
|
client->endianTest = 1;
|
|
|
|
client->endianTest = 1;
|
|
|
|
client->programName="";
|
|
|
|
client->programName="";
|
|
|
|
client->serverHost="";
|
|
|
|
client->serverHost=strdup("");
|
|
|
|
client->serverPort=5900;
|
|
|
|
client->serverPort=5900;
|
|
|
|
|
|
|
|
|
|
|
|
client->CurrentKeyboardLedState = 0;
|
|
|
|
client->CurrentKeyboardLedState = 0;
|
|
|
@ -265,6 +264,9 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv) {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
char* colon=strchr(argv[i],':');
|
|
|
|
char* colon=strchr(argv[i],':');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(client->serverHost)
|
|
|
|
|
|
|
|
free(client->serverHost);
|
|
|
|
|
|
|
|
|
|
|
|
if(colon) {
|
|
|
|
if(colon) {
|
|
|
|
client->serverHost=strdup(argv[i]);
|
|
|
|
client->serverHost=strdup(argv[i]);
|
|
|
|
client->serverHost[(int)(colon-argv[i])]='\0';
|
|
|
|
client->serverHost[(int)(colon-argv[i])]='\0';
|
|
|
|