From 455a80f9cab2dce41b279b90da76a4c21d320d85 Mon Sep 17 00:00:00 2001 From: Nicolas Gilles Date: Thu, 1 May 2014 08:53:00 +0200 Subject: [PATCH] replaced a strdupa with a variable length array --- src/input/mpegts/tsfile/tsfile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/tsfile/tsfile.c b/src/input/mpegts/tsfile/tsfile.c index e11da667..19d1ea99 100644 --- a/src/input/mpegts/tsfile/tsfile.c +++ b/src/input/mpegts/tsfile/tsfile.c @@ -110,7 +110,10 @@ void tsfile_add_file ( const char *path ) { tsfile_input_t *mi; mpegts_mux_t *mm; - char *uuid = NULL, *tok, *tmp = strdupa(path); + char *uuid = NULL, *tok; + + char tmp[strlen(path) + 1]; + strcpy(tmp, path); /* Pull UUID from info */ if ((tok = strstr(tmp, "::"))) {