Fixed compiler warning (glibc complains if you don't check getcwd() retval).

This commit is contained in:
Ryan C. Gordon 2009-09-15 05:50:55 +00:00
parent aedf24bd72
commit 79fadbf271

View file

@ -396,10 +396,12 @@ void Q_getwd (char *out)
int i = 0; int i = 0;
#ifdef WIN32 #ifdef WIN32
_getcwd (out, 256); if (_getcwd (out, 256) == NULL)
strcpy(out, "."); /* shrug */
strcat (out, "\\"); strcat (out, "\\");
#else #else
getcwd (out, 256); if (getcwd (out, 256) == NULL)
strcpy(out, "."); /* shrug */
strcat (out, "/"); strcat (out, "/");
#endif #endif