Skip to content

Commit

Permalink
textopsx: use safer function to parse header name in short buffer
Browse files Browse the repository at this point in the history
(cherry picked from commit 2aa013d)
(cherry picked from commit 5f02824)
  • Loading branch information
miconda committed Sep 17, 2015
1 parent a9809db commit 26e0a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/textopsx/textopsx.c
Expand Up @@ -544,7 +544,7 @@ static int fixup_hname_param(char *hname, struct hname_data** h) {
(*h)->hname.len = hname - (*h)->hname.s;
savec = *hname;
*hname = ':';
parse_hname2((*h)->hname.s, (*h)->hname.s+(*h)->hname.len+3, &hdr);
parse_hname2_short((*h)->hname.s, (*h)->hname.s+(*h)->hname.len, &hdr);
*hname = savec;

if (hdr.type == HDR_ERROR_T) goto err;
Expand Down

0 comments on commit 26e0a04

Please sign in to comment.