X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhoutsbr.c;h=2915afe34bc9c4b1ad4f3af09732e22018b79be4;hb=HEAD;hp=87e7943c26b5b186d02a2209ab48bc16d6959e20;hpb=1cbc163b11d6dbabfe7206fb2f9ddf650337dad6;p=mmh diff --git a/uip/mhoutsbr.c b/uip/mhoutsbr.c index 87e7943..2915afe 100644 --- a/uip/mhoutsbr.c +++ b/uip/mhoutsbr.c @@ -161,12 +161,15 @@ static void output_headers(CT ct, FILE *out) { HF hp; + charstring_t body = charstring_create(0); hp = ct->c_first_hf; while (hp) { - fprintf(out, "%s:%s", hp->name, hp->value); + fold(body, strlen(hp->name), hp->value); + fprintf(out, "%s:%s", hp->name, charstring_buffer(body)); hp = hp->next; } + charstring_free(body); }