fixing next strlcpy() problem keysync
authorVolker Birk <vb@pep.foundation>
Mon, 08 Aug 2016 00:02:27 +0200
branchkeysync
changeset 981894a1b3281f9
parent 980 9674dc9954ca
child 982 3c9982588afc
fixing next strlcpy() problem
src/message_api.c
     1.1 --- a/src/message_api.c	Sun Aug 07 23:48:02 2016 +0200
     1.2 +++ b/src/message_api.c	Mon Aug 08 00:02:27 2016 +0200
     1.3 @@ -532,7 +532,7 @@
     1.4                          if (filename == NULL)
     1.5                              goto enomem;
     1.6  
     1.7 -                        strlcpy(filename, _s->filename, len);
     1.8 +                        strlcpy(filename, _s->filename, len + 1);
     1.9                          strlcpy(filename + len, ".pgp", 5);
    1.10                      }
    1.11                      else {