micro synergy patch by Bruce Oberg

This commit is contained in:
Nick Bolton 2013-04-10 14:50:10 +00:00
parent 72cbcd70c0
commit 77b92b7b6f
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ static void sUpdateContext(uSynergyContext *context)
int receive_size = USYNERGY_RECEIVE_BUFFER_SIZE - context->m_receiveOfs;
int num_received = 0;
int packlen = 0;
if (context->m_receiveFunc(context->m_cookie, context->m_receiveBuffer, receive_size, &num_received) == USYNERGY_FALSE)
if (context->m_receiveFunc(context->m_cookie, context->m_receiveBuffer + context->m_receiveOfs, receive_size, &num_received) == USYNERGY_FALSE)
{
/* Receive failed, let's try to reconnect */
char buffer[128];