--- parser3/src/include/pa_common.h 2026/10/01 11:48:37 1.202 +++ parser3/src/include/pa_common.h 2026/10/18 21:05:35 1.203 @@ -8,7 +8,7 @@ #ifndef PA_COMMON_H #define PA_COMMON_H -#define IDENT_PA_COMMON_H "$Id: pa_common.h,v 1.202 2026/10/01 11:48:37 moko Exp $" +#define IDENT_PA_COMMON_H "$Id: pa_common.h,v 1.203 2026/10/18 21:05:35 moko Exp $" #include "pa_string.h" #include "pa_hash.h" @@ -50,13 +50,9 @@ extern const String content_disposition_ class Value; typedef HASH_STRING HashStringValue; -// replace system s*nprintf with our versions -#undef vsnprintf +/// use instead of system *snprintf: zero-terminated, returns the real length (<= size-1) int pa_vsnprintf(char *, size_t, const char* , va_list); -#define vsnprintf pa_vsnprintf -#undef snprintf int pa_snprintf(char *, size_t, const char* , ...); -#define snprintf pa_snprintf #ifdef _MSC_VER