summarylogtreecommitdiffstats
path: root/fix_getcwd.patch
blob: 6d00392826251338f550deb78be20a1951c4f479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/src/cmdlib.c b/src/cmdlib.c
index b01ba07..adf30b8 100644
--- a/src/cmdlib.c
+++ b/src/cmdlib.c
@@ -4,6 +4,8 @@
 
 #ifdef WIN32
 #include <direct.h>
+#else
+#include <unistd.h>
 #endif
 
 #ifdef NeXT
@@ -233,7 +235,7 @@ void Q_getwd (char *out)
    _getcwd (out, 256);
    strcat (out, "\\");
 #else
-   getwd (out);
+   getcwd (out, 256);
 #endif
 }