mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user