I\'m porting some very old (> 10y) C code to modern Linuxes. I\'m getting segmentation faults within a custom-written vsnprintf() wrapper (apparently its task is to detect d
Unsure on yours, but my man page on variable argument lists says:
COMPATIBILITY
These macros are not compatible with the historic macros they replace. A backward compatible version can be found in the include file.
As you said it is very old code, maybe the va_list received in this routine is not the va_list expected by vsnprintf
. You should first try to extract all parameters with one header then the other to be sure (normally vsnprintf
is stdarg.h compatible)