[quake3-commits] r1618 - trunk/code/tools/asm
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Sep 15 01:50:55 EDT 2009
Author: icculus
Date: 2009-09-15 01:50:55 -0400 (Tue, 15 Sep 2009)
New Revision: 1618
Modified:
trunk/code/tools/asm/cmdlib.c
Log:
Fixed compiler warning (glibc complains if you don't check getcwd() retval).
Modified: trunk/code/tools/asm/cmdlib.c
===================================================================
--- trunk/code/tools/asm/cmdlib.c 2009-09-15 05:43:53 UTC (rev 1617)
+++ trunk/code/tools/asm/cmdlib.c 2009-09-15 05:50:55 UTC (rev 1618)
@@ -396,10 +396,12 @@
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
More information about the quake3-commits
mailing list