--- fig2dev-3.2.9/fig2dev/alloc.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) --- fig2dev-3.2.9/fig2dev/alloc.h +++ fig2dev-3.2.9/fig2dev/alloc.h 2023-09-15 06:57:41.669499853 +0000 @@ -19,15 +19,15 @@ #ifndef ALLOC_H #define ALLOC_H -#define Line_malloc(z) ((z) = malloc(LINOBJ_SIZE)) -#define Pic_malloc(z) ((z) = malloc(PIC_SIZE)) -#define Spline_malloc(z) ((z) = malloc(SPLOBJ_SIZE)) -#define Ellipse_malloc(z) ((z) = malloc(ELLOBJ_SIZE)) -#define Arc_malloc(z) ((z) = malloc(ARCOBJ_SIZE)) -#define Compound_malloc(z) ((z) = malloc(COMOBJ_SIZE)) -#define Text_malloc(z) ((z) = malloc(TEXOBJ_SIZE)) -#define Point_malloc(z) ((z) = malloc(POINT_SIZE)) -#define Control_malloc(z) ((z) = malloc(CONTROL_SIZE)) -#define Arrow_malloc(z) ((z) = malloc(ARROW_SIZE)) +#define Line_malloc(z) ((z) = calloc(LINOBJ_SIZE,1)) +#define Pic_malloc(z) ((z) = calloc(PIC_SIZE,1)) +#define Spline_malloc(z) ((z) = calloc(SPLOBJ_SIZE,1)) +#define Ellipse_malloc(z) ((z) = calloc(ELLOBJ_SIZE,1)) +#define Arc_malloc(z) ((z) = calloc(ARCOBJ_SIZE,1)) +#define Compound_malloc(z) ((z) = calloc(COMOBJ_SIZE,1)) +#define Text_malloc(z) ((z) = calloc(TEXOBJ_SIZE,1)) +#define Point_malloc(z) ((z) = calloc(POINT_SIZE,1)) +#define Control_malloc(z) ((z) = calloc(CONTROL_SIZE,1)) +#define Arrow_malloc(z) ((z) = calloc(ARROW_SIZE,1)) #endif /* ALLOC_H */