settings - use alloca() in hts_settings_makedirs()
This commit is contained in:
parent
9c783ef2d0
commit
4a43a508db
1 changed files with 3 additions and 1 deletions
|
@ -70,7 +70,9 @@ int
|
|||
hts_settings_makedirs ( const char *inpath )
|
||||
{
|
||||
size_t x = strlen(inpath) - 1;
|
||||
char path[512];
|
||||
char *path = alloca(x + 2);
|
||||
|
||||
if (path == NULL) return -1;
|
||||
strcpy(path, inpath);
|
||||
|
||||
while (x) {
|
||||
|
|
Loading…
Add table
Reference in a new issue