hls: fix buffer overflow

i should not have used strdup()