(mu_header_set_value): Fix length calculation
Showing
1 changed file
with
1 additions
and
6 deletions
... | @@ -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); | ... | ... |
-
Please register or sign in to post a comment