2
0
Эх сурвалжийг харах

textopsx: use safer function to parse header name in short buffer

Daniel-Constantin Mierla 10 жил өмнө
parent
commit
2aa013d5fb

+ 1 - 1
modules/textopsx/textopsx.c

@@ -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;