mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
XQuartz: Make a copy of args for our crash reporter vsnprintf
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
7
os/log.c
7
os/log.c
@@ -528,7 +528,12 @@ FatalError(const char *f, ...)
|
||||
|
||||
va_start(args, f);
|
||||
#ifdef __APPLE__
|
||||
(void)vsnprintf(__crashreporter_info_buff__, sizeof(__crashreporter_info_buff__), f, args);
|
||||
{
|
||||
va_list args2;
|
||||
va_copy(args2, args);
|
||||
(void)vsnprintf(__crashreporter_info_buff__, sizeof(__crashreporter_info_buff__), f, args2);
|
||||
va_end(args2);
|
||||
}
|
||||
#endif
|
||||
VErrorF(f, args);
|
||||
va_end(args);
|
||||
|
||||
Reference in New Issue
Block a user