From 995ebf4b588e092ed008c2757ed84713d9e1e61a Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 30 Apr 2008 13:34:28 +0300 Subject: [PATCH] Kill of alloca() from tufdio tests - yes it leaks, who cares --- rpmio/tufdio.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rpmio/tufdio.c b/rpmio/tufdio.c index 19572cd..034d19a 100644 --- a/rpmio/tufdio.c +++ b/rpmio/tufdio.c @@ -15,13 +15,11 @@ extern int _url_debug; extern int _rpmio_debug; -#define alloca_strdup(_s) strcpy(alloca(strlen(_s)+1), (_s)) - const char *tmpdir = "/tmp"; const char *dio_xxxxxx = "/dio.XXXXXX"; -#define DIO_XXXXXX alloca_strdup(dio_xxxxxx) +#define DIO_XXXXXX strdup(dio_xxxxxx) const char *fio_xxxxxx = "/fio.XXXXXX"; -#define FIO_XXXXXX alloca_strdup(fio_xxxxxx) +#define FIO_XXXXXX strdup(fio_xxxxxx) static const char * xstrconcat(const char * arg, ...) { -- 2.7.4