summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-09-24 19:12:35 -0700
committerKevin McCarthy <kevin@8t8.us>2021-09-24 19:38:17 -0700
commit2077f72eb5776388a514a731bc453f29016a3dfc (patch)
tree0b0335be3fe15015a5e3e07c0487acaa1bcaf835 /handler.c
parentd0d40a33f1400269251d06c56ef331482c6b99be (diff)
Assert mutt_decode_attachment() doesn't modify body fields.
Some old smime (and other parts of the code) have out of date comments asserting mutt_decode_attachment() modifies the body length, offset, and type fields. Add a const modifier to the parameter and called functions to assert this is not the case.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/handler.c b/handler.c
index 8d27ff5e..d1b4bc73 100644
--- a/handler.c
+++ b/handler.c
@@ -1545,7 +1545,7 @@ static int external_body_handler (BODY *b, STATE *s)
return 0;
}
-void mutt_decode_attachment (BODY *b, STATE *s)
+void mutt_decode_attachment (const BODY *b, STATE *s)
{
int istext = mutt_is_text_part (b);
iconv_t cd = (iconv_t)(-1);