summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 77cb7bc)
raw | patch | inline | side by side (parent: 77cb7bc)
author | Junio C Hamano <gitster@pobox.com> | |
Mon, 7 Jul 2008 05:26:45 +0000 (22:26 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 7 Jul 2008 05:59:51 +0000 (22:59 -0700) |
When handling a MIME multipart message, multi-part boundary lines are eaten
by a call to handle_boundary() function from the main loop of handle_body(),
and after that happens, we should update the line length correctly, because
handle_boundary() udpates line[] with new data.
This was caused by a thinko in 9aa2309 (mailinfo: apply the same fix not
to lose NULs in BASE64 and QP codepaths, 2008-05-25).
Signed-off-by: Junio C Hamano <gitster@pobox.com>
by a call to handle_boundary() function from the main loop of handle_body(),
and after that happens, we should update the line length correctly, because
handle_boundary() udpates line[] with new data.
This was caused by a thinko in 9aa2309 (mailinfo: apply the same fix not
to lose NULs in BASE64 and QP codepaths, 2008-05-25).
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-mailinfo.c | patch | blob | history |
diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c
index 97c1ff97440ec107e336df774f86aadc28f26b89..fa6e8f90a4d54eb07f2af80620e35e617c94d605 100644 (file)
--- a/builtin-mailinfo.c
+++ b/builtin-mailinfo.c
np - newline);
if (!handle_boundary())
return;
+ len = strlen(line);
}
/* Unwrap transfer encoding */