]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Oops, fix d9d0fa5e86db2f4470d34395a233b450478b2f60
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 7 May 2017 13:32:51 +0000 (14:32 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 7 May 2017 13:32:51 +0000 (14:32 +0100)
src/libutil/http.c

index ab3c386dc0f4b7e87ef65084f70f8aad1f7cd50a..0edd74d1a129be58c46fb9f81825844cc9e5db78 100644 (file)
@@ -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));