From: Nicolas Gilles Date: Thu, 1 May 2014 06:53:00 +0000 (+0200) Subject: replaced a strdupa with a variable length array X-Git-Tag: v4.1~2113^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=455a80f9cab2dce41b279b90da76a4c21d320d85;p=thirdparty%2Ftvheadend.git replaced a strdupa with a variable length array --- diff --git a/src/input/mpegts/tsfile/tsfile.c b/src/input/mpegts/tsfile/tsfile.c index e11da6677..19d1ea99d 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, "::"))) {