diff options
author | Kevin McCarthy <kevin@8t8.us> | 2021-09-24 19:12:35 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2021-09-24 19:38:17 -0700 |
commit | 2077f72eb5776388a514a731bc453f29016a3dfc (patch) | |
tree | 0b0335be3fe15015a5e3e07c0487acaa1bcaf835 /handler.c | |
parent | d0d40a33f1400269251d06c56ef331482c6b99be (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |