From d25f2c87eae297e8caae4301b0ef0cbc41a8f0da Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 16 May 2004 23:13:06 +0000 Subject: [PATCH] path is long dead. oops. thanks, Silh --- libs/util/sys.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/util/sys.c b/libs/util/sys.c index 5b72343ba..cdb4bd283 100644 --- a/libs/util/sys.c +++ b/libs/util/sys.c @@ -491,7 +491,6 @@ Sys_DebugLog (const char *file, const char *fmt, ...) va_list args; static dstring_t *data; int fd; - char path[PATH_MAX]; if (!data) data = dstring_newstr (); @@ -499,7 +498,7 @@ Sys_DebugLog (const char *file, const char *fmt, ...) va_start (args, fmt); dvsprintf (data, fmt, args); va_end (args); - fd = open (path, O_WRONLY | O_CREAT | O_APPEND, 0644); + fd = open (file, O_WRONLY | O_CREAT | O_APPEND, 0644); write (fd, data->str, data->size - 1); close (fd); }