Browse code

core: fix offset to in hdr add helper added recently

- one char was jumped over

(cherry picked from commit 9e5617324f1194f20e4292446922695439e2f9d7)

Daniel-Constantin Mierla authored on 11/07/2016 13:38:24
Showing 1 changed files
... ...
@@ -766,7 +766,7 @@ int sr_hdr_add_zz(sip_msg_t *msg, char *hname, char *hbody)
766 766
 	memcpy(h.s, sname.s, sname.len);
767 767
 	memcpy(h.s+sname.len, ": ", 2);
768 768
 	memcpy(h.s+sname.len+2, sbody.s, sbody.len);
769
-	memcpy(h.s+sname.len+2+sbody.len+1, CRLF, CRLF_LEN);
769
+	memcpy(h.s+sname.len+2+sbody.len, CRLF, CRLF_LEN);
770 770
 	h.s[h.len] = '\0';
771 771
 	if (insert_new_lump_before(anchor, h.s, h.len, 0) == 0)
772 772
 	{