1*** lib/regex_internal.h.orig Mon May 24 12:36:55 2010 2--- lib/regex_internal.h Mon May 24 12:35:46 2010 3*************** 4*** 468,474 **** 5 # define MAX(a,b) ((a) < (b) ? (b) : (a)) 6 #endif 7 8! #define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t))) 9 #define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t))) 10 #define re_free(p) free (p) 11 12--- 468,474 ---- 13 # define MAX(a,b) ((a) < (b) ? (b) : (a)) 14 #endif 15 16! #define re_malloc(t,n) ((t *) malloc ((n) > 0 ? (n) * sizeof (t) : 1)) 17 #define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t))) 18 #define re_free(p) free (p) 19 20