|
From: Brian P. <br...@us...> - 2006-10-14 20:36:16
|
CVSROOT: /cvsroot/vncproxy
Module name: vncproxy
Repository: vncproxy/src/
Changes by: br...@sc....(none) 06/10/14 13:36:15
Log message:
Change from Bob Ellison:
There's a problem that seems to be restricted to the AMD64 platform with
the RHEL4 operating system when using <stdarg.h>.
The va_list apparently is modified by the call to vfprintf(), so that
the second call to vfprintf() with the same va_list (to send a message
both to the logfile and to stderr) produces incorrect results (bad data
or segmentation faults).
Adding a va_copy() call makes a second copy of the va_list and allows
the second call to vfprintf() to succeed.
Alternatively, we can send the message to a local string buffer once,
and then send that string to both the logfile and stderr...
Modified files:
vncproxy/src/:
logging.c
Revision Changes Path
1.3 +9 -3 vncproxy/src/logging.c
|