]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
replaced a strdupa with a variable length array
authorNicolas Gilles <nicolas.gilles@gmail.com>
Thu, 1 May 2014 06:53:00 +0000 (08:53 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 7 May 2014 15:20:36 +0000 (17:20 +0200)
src/input/mpegts/tsfile/tsfile.c

index e11da667769915ced6d754b81eee13b65cbdd488..19d1ea99d86b4b66e0d123ac0fd6b531ae40b544 100644 (file)
@@ -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, "::"))) {