Browse Source

use strlen() instead of wrong magic literals. "Version: 1" instead of "Version: 1" + NUL byte

(transplanted from 02da5655fa)
doc_update_sequoia
Roker 6 years ago
parent
commit
9578855f2c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/message_api.c

+ 1
- 1
src/message_api.c View File

@ -366,7 +366,7 @@ static PEP_STATUS encrypt_PGP_MIME(
if (v == NULL)
goto enomem;
bloblist_t *_a = new_bloblist(v, 11, "application/pgp-encrypted", NULL);
bloblist_t *_a = new_bloblist(v, strlen(v), "application/pgp-encrypted", NULL);
if (_a == NULL)
goto enomem;
dst->attachments = _a;


Loading…
Cancel
Save