From: Vsevolod Stakhov Date: Sun, 7 May 2017 13:32:51 +0000 (+0100) Subject: [Fix] Oops, fix d9d0fa5e86db2f4470d34395a233b450478b2f60 X-Git-Tag: 1.6.0~255 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e34d0c8859b9800a88547764c8d269a35ff15d5c;p=rspamd.git [Fix] Oops, fix d9d0fa5e86db2f4470d34395a233b450478b2f60 --- diff --git a/src/libutil/http.c b/src/libutil/http.c index ab3c386dc..0edd74d1a 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -2802,7 +2802,7 @@ rspamd_http_message_add_header_len (struct rspamd_http_message *msg, nlen = strlen (name); vlen = len; hdr->combined = rspamd_fstring_sized_new (nlen + vlen + 4); - rspamd_printf_fstring (&hdr->combined, "%s: %*s\r\n", name, (gint)nlen, + rspamd_printf_fstring (&hdr->combined, "%s: %*s\r\n", name, (gint)vlen, value); hdr->value = g_slice_alloc (sizeof (*hdr->value)); hdr->name = g_slice_alloc (sizeof (*hdr->name));