Skip to content

Commit

Permalink
mistake edit
Browse files Browse the repository at this point in the history
  • Loading branch information
rishithaminol committed Mar 21, 2018
1 parent 9d650f1 commit 9be5883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ static void send_json_response(int sockfd, struct myhttp_header *header, MYSQL *
int i = 1;
while (t != NULL) {
if (full_rank > 0)
sprintf(tempstr, "#%d-(%s)%s\n", t->col1_rank, t->coin_symbol, t->coin_id);
sprintf(tempstr, "#%d-%s(%s)\n", t->col1_rank, t->coin_id, t->coin_symbol);
else
sprintf(tempstr, "#%d-(%s)%s: %d (%d)\n", i++, t->coin_symbol, t->coin_id, t->col1_rank, t->col2_rank);
sprintf(tempstr, "#%d-%s:(%s) %d (%d)\n", i++, t->coin_id, t->coin_symbol, t->col1_rank, t->col2_rank);
write(sockfd, tempstr, strlen(tempstr));
t = t->next;
}
Expand Down

0 comments on commit 9be5883

Please sign in to comment.