mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
Fixed compiler warning (glibc complains if you don't check getcwd() retval).
This commit is contained in:
parent
aedf24bd72
commit
79fadbf271
1 changed files with 4 additions and 2 deletions
|
@ -396,10 +396,12 @@ void Q_getwd (char *out)
|
|||
int i = 0;
|
||||
|
||||
#ifdef WIN32
|
||||
_getcwd (out, 256);
|
||||
if (_getcwd (out, 256) == NULL)
|
||||
strcpy(out, "."); /* shrug */
|
||||
strcat (out, "\\");
|
||||
#else
|
||||
getcwd (out, 256);
|
||||
if (getcwd (out, 256) == NULL)
|
||||
strcpy(out, "."); /* shrug */
|
||||
strcat (out, "/");
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue