Skip to content

Commit

Permalink
core: fix offset to in hdr add helper added recently
Browse files Browse the repository at this point in the history
- one char was jumped over
  • Loading branch information
miconda committed Jul 11, 2016
1 parent acccc6c commit 9e56173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_lump.c
Expand Up @@ -766,7 +766,7 @@ int sr_hdr_add_zz(sip_msg_t *msg, char *hname, char *hbody)
memcpy(h.s, sname.s, sname.len);
memcpy(h.s+sname.len, ": ", 2);
memcpy(h.s+sname.len+2, sbody.s, sbody.len);
memcpy(h.s+sname.len+2+sbody.len+1, CRLF, CRLF_LEN);
memcpy(h.s+sname.len+2+sbody.len, CRLF, CRLF_LEN);
h.s[h.len] = '\0';
if (insert_new_lump_before(anchor, h.s, h.len, 0) == 0)
{
Expand Down

0 comments on commit 9e56173

Please sign in to comment.