Skip to content

Commit

Permalink
print multi-line response
Browse files Browse the repository at this point in the history
  • Loading branch information
selbetar committed Apr 10, 2020
1 parent 33b4599 commit aedf82b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ ssize_t read_response (char *response)
while (1) {
memset (response, 0, BUF_SIZE);
length = read (sfd, response, BUF_SIZE);
fprintf(stdout, "%s", response);
if (strstr (response, buf) != NULL)
break;
}
Expand Down

0 comments on commit aedf82b

Please sign in to comment.