Commit d76cc0ea d76cc0eac86b16877d42861069bb2ee0fd23c33b by Sergey Poznyakoff

(mu_header_set_value): Fix length calculation

1 parent dfba1d86
...@@ -333,12 +333,7 @@ mu_header_set_value (mu_header_t header, const char *fn, const char *fv, ...@@ -333,12 +333,7 @@ mu_header_set_value (mu_header_t header, const char *fn, const char *fv,
333 header->hdr[i].fn[1] = '\0'; 333 header->hdr[i].fn[1] = '\0';
334 } 334 }
335 /* Readjust the pointers. */ 335 /* Readjust the pointers. */
336 /* FIXME: I'm not sure this 3 will work when the 336 len -= header->hdr[i].fv_end - header->hdr[i].fn + 1;
337 original data looked like:
338 Field : Value
339 Test this... and why not just do a strlen(blurb)?
340 */
341 len -= fn_len + fv_len + 3; /* :<sp>\n */
342 i--; 337 i--;
343 blurb = header->blurb; 338 blurb = header->blurb;
344 header_parse (header, blurb, len); 339 header_parse (header, blurb, len);
......