Skip to content

Commit

Permalink
Fix load error when buffer too small
Browse files Browse the repository at this point in the history
  • Loading branch information
colinleroy committed Oct 13, 2024
1 parent 8febfe3 commit d2d0147
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mastodon/api/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ static __fastcall__ char status_fill_from_json(status *s, char *id, char full, c
s->poll->id = strdup(lines[16]);
poll_fill(s->poll, is_reblog /* POLL_FROM_REBLOG == 1, POLL_FROM_STATUS == 0 */);
}

} else {
return -1;
}

r = full ? TL_STATUS_LARGE_BUF : TL_STATUS_SHORT_BUF;
Expand Down

0 comments on commit d2d0147

Please sign in to comment.