libeplayer3/input: no need for alloca()

Origin commit data
------------------
Branch: master
Commit: 5450625bc4
Author: martii <m4rtii@gmx.de>
Date: 2014-05-03 (Sat, 03 May 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-05-03 14:29:26 +02:00
parent ee07d0dc47
commit 7868f45ae2

View File

@@ -273,7 +273,7 @@ bool Input::ReadSubtitle(const char *filename, const char *format, int pid)
const char *lastDot = strrchr(filename, '.');
if (!lastDot)
return false;
char *subfile = (char *) alloca(strlen(filename) + strlen(format));
char subfile[strlen(filename) + strlen(format)];
strcpy(subfile, filename);
strcpy(subfile + (lastDot + 1 - filename), format);