Skip to content

Commit

Permalink
Update message-parser.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jim3692 committed Apr 1, 2023
1 parent e470df3 commit 958f75b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions native/message-parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,7 @@ int main (int argc, char *argv[]) {
for (int i = 0; i < INT_SIZE; i++)
buffer[i] = getchar();

/*
for (int i = 0; i < INT_SIZE / 2; i++) {
unsigned char temp = buffer[i];
buffer[i] = buffer[INT_SIZE - 1 - i];
buffer[INT_SIZE - 1 - i] = temp;
}
*/

int charactersToRead = *(int*)buffer;
// printf("charactersToRead: %d", charactersToRead);
free(buffer);

buffer = (unsigned char*)malloc(charactersToRead + 1);
Expand Down

0 comments on commit 958f75b

Please sign in to comment.