replaced a strdupa with a variable length array

This commit is contained in:
Nicolas Gilles 2014-05-01 08:53:00 +02:00 committed by Jaroslav Kysela
parent 20e2a668bd
commit 455a80f9ca

View 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, "::"))) {