--- parser3/src/include/pa_common.h 2026/09/30 16:44:19 1.201 +++ 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.201 2026/09/30 16:44:19 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 @@ -104,7 +100,7 @@ inline int pa_strncasecmp(const char* st // copy of the path with '/' only char* backslashes_to_slashes(const char* path); -// same, keeping the string languages +// same, keeping the original languages const String& backslashes_to_slashes(const String& path); size_t strpos(const char *str, const char *substr);