[exim-cvs] cvs commit: exim/exim-src/src/pdkim pdkim.c

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tom Kistner
Date:  
À: exim-cvs
Sujet: [exim-cvs] cvs commit: exim/exim-src/src/pdkim pdkim.c
tom 2009/02/25 12:52:58 GMT

  Modified files:        (Branch: DEVEL_PDKIM)
    exim-src/src/pdkim   pdkim.c 
  Log:
  Fix off-the-shelf off-by-one error


  Revision  Changes    Path
  1.1.2.3   +1 -1      exim/exim-src/src/pdkim/pdkim.c


  Index: pdkim.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/pdkim/Attic/pdkim.c,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- pdkim.c    24 Feb 2009 15:57:55 -0000    1.1.2.2
  +++ pdkim.c    25 Feb 2009 12:52:58 -0000    1.1.2.3
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/pdkim/pdkim.c,v 1.1.2.2 2009/02/24 15:57:55 tom Exp $ */
  +/* $Cambridge: exim/exim-src/src/pdkim/pdkim.c,v 1.1.2.3 2009/02/25 12:52:58 tom Exp $ */
   /* pdkim.c */


   #include <stdlib.h>
  @@ -228,7 +228,7 @@
           int seen_wsp = 0;
           char *p = data;
           int q = 0;
  -        relaxed_data = malloc(len);
  +        relaxed_data = malloc(len+1);
           if (relaxed_data == NULL) return PDKIM_ERR_OOM;
           while (*p != '\0') {
             char c = *p;