Skip to content

Commit

Permalink
fix unterminated guppy:// MIME type
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Nov 9, 2023
1 parent 34578f9 commit 26fefd8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion guppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ static int do_guppy_download(URL *url, GuppySocket *s, char **mime, int ask) {

chunk->seq = strtol(chunk->buffer, &end, 10);
if (chunk->seq < 6 || chunk->seq > INT_MAX || end == NULL || (*end != ' ' && (*end != '\r' || *(end + 1) != '\n'))) continue;
*crlf = '\r';
chunk->skip = crlf - chunk->buffer + 2;

/* ack the chunk */
Expand Down

0 comments on commit 26fefd8

Please sign in to comment.