mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 09:02:08 +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;
|
va_list args;
|
||||||
static dstring_t *data;
|
static dstring_t *data;
|
||||||
int fd;
|
int fd;
|
||||||
char path[PATH_MAX];
|
|
||||||
|
|
||||||
if (!data)
|
if (!data)
|
||||||
data = dstring_newstr ();
|
data = dstring_newstr ();
|
||||||
|
@ -499,7 +498,7 @@ Sys_DebugLog (const char *file, const char *fmt, ...)
|
||||||
va_start (args, fmt);
|
va_start (args, fmt);
|
||||||
dvsprintf (data, fmt, args);
|
dvsprintf (data, fmt, args);
|
||||||
va_end (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);
|
write (fd, data->str, data->size - 1);
|
||||||
close (fd);
|
close (fd);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue