hm... without_double_ending() was correct ;-) keysync
authorVolker Birk <vb@pep.foundation>
Mon, 08 Aug 2016 00:06:59 +0200
branchkeysync
changeset 9823c9982588afc
parent 981 894a1b3281f9
child 984 573cdd592595
hm... without_double_ending() was correct ;-)
src/message_api.c
     1.1 --- a/src/message_api.c	Mon Aug 08 00:02:27 2016 +0200
     1.2 +++ b/src/message_api.c	Mon Aug 08 00:06:59 2016 +0200
     1.3 @@ -739,7 +739,7 @@
     1.4      if (ext == NULL)
     1.5          return NULL;
     1.6  
     1.7 -    char *result = strndup(filename, ext - filename + 1);
     1.8 +    char *result = strndup(filename, ext - filename);
     1.9      assert(result);
    1.10      return result;
    1.11  }