浏览代码

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

Daniel-Constantin Mierla 10 年之前
父节点
当前提交
2aa013d5fb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/textopsx/textopsx.c

+ 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;
 	(*h)->hname.len = hname - (*h)->hname.s;
 	savec = *hname;
 	savec = *hname;
 	*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;
 	*hname = savec;
 
 
 	if (hdr.type == HDR_ERROR_T) goto err;
 	if (hdr.type == HDR_ERROR_T) goto err;