Edit

IABSD.fr/ports/mail/mairix/patches/patch-dfasyn_n2d_h

Branch :

  • Show log

    Commit

  • Author : naddy
    Date : 2022-03-11 19:34:31
    Hash : 348a3e29
    Message : drop RCS Ids

  • mail/mairix/patches/patch-dfasyn_n2d_h
  • --- dfasyn/n2d.h.orig	Fri Dec 16 22:09:17 2005
    +++ dfasyn/n2d.h	Fri Dec 16 22:09:27 2005
    @@ -31,7 +31,7 @@
     #include <stdlib.h>
     #include <string.h>
     
    -#define new(T) ((T *) malloc(sizeof(T)))
    +#define new(T) ((T *) calloc(1, sizeof(T)))
     #define new_array(T,N) ((T *) malloc((N) * sizeof(T)))
     #define resize_array(T,arr,newN) ((T *) ((arr) ? realloc(arr,(newN)*sizeof(T)) : malloc((newN)*sizeof(T))))
     #define new_string(s) strcpy((char *)malloc((strlen(s)+1)*sizeof(char)),s)