mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 01:41:10 +00:00
path is long dead. oops. thanks, Silh
This commit is contained in:
parent
8c10e2e355
commit
d25f2c87ea
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue