use strlen() instead of wrong magic literals. "Version: 1" instead of "Version: 1" + NUL byte roker-linux
authorRoker <roker@pep-project.org>
Mon, 04 Jul 2016 13:38:14 +0200
branchroker-linux
changeset 80102da5655fa56
parent 800 6564b62a26e5
child 837 bdff704cd921
use strlen() instead of wrong magic literals. "Version: 1" instead of "Version: 1" + NUL byte
src/message_api.c
     1.1 --- a/src/message_api.c	Sun Jul 03 01:11:36 2016 +0200
     1.2 +++ b/src/message_api.c	Mon Jul 04 13:38:14 2016 +0200
     1.3 @@ -366,7 +366,7 @@
     1.4      if (v == NULL)
     1.5          goto enomem;
     1.6  
     1.7 -    bloblist_t *_a = new_bloblist(v, 11, "application/pgp-encrypted", NULL);
     1.8 +    bloblist_t *_a = new_bloblist(v, strlen(v), "application/pgp-encrypted", NULL);
     1.9      if (_a == NULL)
    1.10          goto enomem;
    1.11      dst->attachments = _a;