X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=misc.c;h=df853bca38674d56851cf349769dfc50ba388a3e;hb=109ae8e74de4ebce6098900d2c23f666bba2bc63;hp=f54b1c90b45c5cc3bdc7efdf1db2f264c39345f8;hpb=c210816e1a9bc660852b7eea604cdcbcc7c144f4;p=pkg%2Fabook.git diff --git a/misc.c b/misc.c index f54b1c9..df853bc 100644 --- a/misc.c +++ b/misc.c @@ -90,7 +90,7 @@ mkstr (const char *format, ... ) #ifdef ABOOK_SRC (char *) abook_malloc (size); #else - (char *) malloc (size); + (char *) xmalloc (size); #endif assert(format != NULL); @@ -114,7 +114,7 @@ mkstr (const char *format, ... ) #ifdef ABOOK_SRC (char *) abook_realloc (buffer, size); #else - (char *) realloc (buffer, size); + (char *) xrealloc (buffer, size); #endif } } @@ -142,7 +142,7 @@ strconcat (const char *str, ...) #ifdef ABOOK_SRC abook_malloc(l); #else - malloc(l); + xmalloc(l); #endif if(concat == NULL) return NULL; @@ -204,8 +204,8 @@ my_getcwd() #define INITIAL_SIZE 128 #ifndef ABOOK_SRC -# define abook_malloc(X) malloc(X) -# define abook_realloc(X, XX) realloc(X, XX) +# define abook_malloc(X) xmalloc(X) +# define abook_realloc(X, XX) xrealloc(X, XX) #endif char *