From 4fa9274819073fca9a2d7cfd7ccdd74b16b16533 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Sun, 7 May 2023 11:56:55 -0700 Subject: [PATCH] cmdlib.c: getwd change to getcwd. --- tools/gpl-quake/cmdlib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/gpl-quake/cmdlib.c b/tools/gpl-quake/cmdlib.c index c345b00..b4529bb 100644 --- a/tools/gpl-quake/cmdlib.c +++ b/tools/gpl-quake/cmdlib.c @@ -6,6 +6,8 @@ #ifdef WIN32 #include +#else +#include #endif #ifdef NeXT @@ -169,7 +171,7 @@ void Q_getwd (char *out) _getcwd (out, 256); strcat (out, "\\"); #else - getwd (out); + getcwd (out, 256); #endif }