mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 23:21:41 +00:00
Fixed potential crash in word expansion API
10.5.8 PPC crashed 100%, some versions of 10.6 i386 were affected too
This commit is contained in:
parent
bccfdaacf7
commit
bcdf22b910
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ static void RestartWithParameters(const char* iwadPath, NSString* parameters)
|
||||||
[arguments addObject:currentParameter];
|
[arguments addObject:currentParameter];
|
||||||
}
|
}
|
||||||
|
|
||||||
wordexp_t expansion;
|
wordexp_t expansion = {};
|
||||||
|
|
||||||
if (0 == wordexp([parameters UTF8String], &expansion, 0))
|
if (0 == wordexp([parameters UTF8String], &expansion, 0))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue