BUGFIX: combine_short_and_long() broken keysync
authorVolker Birk <vb@pep.foundation>
Sun, 07 Aug 2016 23:39:29 +0200
branchkeysync
changeset 9798562a026be85
parent 978 2b6017ae9dcc
child 980 9674dc9954ca
BUGFIX: combine_short_and_long() broken
src/message_api.c
     1.1 --- a/src/message_api.c	Sun Aug 07 23:17:14 2016 +0200
     1.2 +++ b/src/message_api.c	Sun Aug 07 23:39:29 2016 +0200
     1.3 @@ -110,14 +110,8 @@
     1.4          return NULL;
     1.5  
     1.6      strlcpy(ptext, "Subject: ", bufsize);
     1.7 -    bufsize -= 9;
     1.8 -    
     1.9      strlcat(ptext, shortmsg, bufsize);
    1.10 -    bufsize -= strlen(shortmsg);
    1.11 -    
    1.12      strlcat(ptext, "\n\n", bufsize);
    1.13 -    bufsize -= 2;
    1.14 -    
    1.15      strlcat(ptext, longmsg, bufsize);
    1.16  
    1.17      return ptext;