Skip to content

Commit 9c86869

Browse files
fix bug
1 parent 2acc93e commit 9c86869

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mproxy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ int send_data(int socket,char * buffer,int len)
452452
for(i = 0; i < len ; i++)
453453
{
454454
char c = buffer[i] ;
455-
buffer[i] = c+ 1;
455+
buffer[i] ^= 1;
456456

457457
}
458458
}
@@ -469,7 +469,7 @@ int receive_data(int socket, char * buffer, int len)
469469
for(i = 0; i< n; i++ )
470470
{
471471
char c = buffer[i];
472-
buffer[i] = c -1;
472+
buffer[i] ^= 1;
473473
// printf("%d => %d\n",c,buffer[i]);
474474
}
475475
}

0 commit comments

Comments
 (0)