From 03a649231e5016b81e49a76880bade8925dc816c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 2 Apr 2017 21:47:03 +0200 Subject: replace _emalloc with emalloc (is the same unless DMALLOC is used) --- src/timers.c | 2 +- src/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timers.c b/src/timers.c index 3343445..1cac94b 100644 --- a/src/timers.c +++ b/src/timers.c @@ -95,7 +95,7 @@ void feh_add_timer(void (*func) (void *data), void *data, double in, char *name) D(("adding timer %s for %f seconds time\n", name, in)); feh_remove_timer(name); - ft = malloc(sizeof(_fehtimer)); + ft = emalloc(sizeof(_fehtimer)); ft->next = NULL; ft->func = func; ft->data = data; diff --git a/src/utils.c b/src/utils.c index e02d807..4c06a48 100644 --- a/src/utils.c +++ b/src/utils.c @@ -122,7 +122,7 @@ char *estrjoin(const char *separator, ...) s = va_arg(args, char *); } va_end(args); - string = _emalloc(sizeof(char) * (len + 1)); + string = emalloc(sizeof(char) * (len + 1)); *string = 0; va_start(args, separator); -- cgit v1.2.3