libspark/playback: youtube URLs are easily longer than 400 bytes

This commit is contained in:
martii
2013-06-07 13:56:23 +02:00
parent b018b10a66
commit ac072c5a41

View File

@@ -125,8 +125,11 @@ bool cPlayback::Start(char *filename, unsigned short vpid, int vtype, unsigned s
mSubtitleStream=-1;
mDvbsubtitleStream=-1;
mTeletextStream=-1;
#endif
char *file = (char *) alloca(strlen(filename) + 1);
*file = 0;
#else
char file[400] = {""};
#endif
if(!strncmp("http://", filename, 7))
{