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

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nigel Metheringham
Fecha:  
A: exim-cvs
Asunto: [exim-cvs] cvs commit: exim/exim-src/src/pdkim pdkim.c
nm4 2010/05/29 20:14:06 BST

  Modified files:
    exim-src/src/pdkim   pdkim.c 
  Log:
  Null terminate pdkim string.  Fixes: #985


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


  Index: pdkim.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/pdkim/pdkim.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- pdkim.c    29 May 2010 18:59:18 -0000    1.13
  +++ pdkim.c    29 May 2010 19:14:06 -0000    1.14
  @@ -20,7 +20,7 @@
    *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
    */


-/* $Cambridge: exim/exim-src/src/pdkim/pdkim.c,v 1.13 2010/05/29 18:59:18 nm4 Exp $ */
+/* $Cambridge: exim/exim-src/src/pdkim/pdkim.c,v 1.14 2010/05/29 19:14:06 nm4 Exp $ */

   #include <stdlib.h>
   #include <stdio.h>
  @@ -211,6 +211,7 @@
     p->allocated=(len+1);
     p->len=len;
     if (cstr) strcpy(p->str,cstr);
  +  else p->str[p->len] = '\0';
     return p;
   }
   char *pdkim_strncat(pdkim_str *str, char *data, int len) {