mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-04-29 23:41:38 -06:00
Fix observed crash in IPhone::Log
This commit is contained in:
parent
edc455c93d
commit
83a84abc08
@ -337,7 +337,11 @@ void IPhone::Log(char *pszFormat, va_list va)
|
||||
#endif
|
||||
|
||||
char sz[512];
|
||||
vsnprintf(sz, sizeof(sz), pszFormat, va);
|
||||
if (va != NULL) {
|
||||
vsnprintf(sz, sizeof(sz), pszFormat, va);
|
||||
} else {
|
||||
strncpyz(sz, pszFormat, sizeof(sz));
|
||||
}
|
||||
|
||||
#ifdef SIMULATOR
|
||||
printf("%s\n", sz);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user