diff options
Diffstat (limited to 'apache20.h')
-rw-r--r-- | apache20.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $Header: /home/cvs/mod_log_sql/apache20.h,v 1.2 2004/01/20 19:38:07 urkle Exp $ */ | 1 | /* $Header: /home/cvs/mod_log_sql/apache20.h,v 1.3 2004/01/21 04:34:21 urkle Exp $ */ |
2 | #ifndef APACHE20_H | 2 | #ifndef APACHE20_H |
3 | #define APACHE20_H | 3 | #define APACHE20_H |
4 | 4 | ||
@@ -23,9 +23,11 @@ | |||
23 | static void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) __attribute__ ((format (printf, 5,6))); | 23 | static void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) __attribute__ ((format (printf, 5,6))); |
24 | static inline void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) | 24 | static inline void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) |
25 | { | 25 | { |
26 | static char buff[MAX_STRING_LEN]; | ||
26 | va_list args; | 27 | va_list args; |
27 | va_start(args, fmt); | 28 | va_start(args, fmt); |
28 | ap_log_error(file,line,level,0,s,fmt,args); | 29 | apr_vsnprintf(buff,MAX_STRING_LEN, fmt,args); |
30 | ap_log_error(file,line,level,0,s,"%s",buff); | ||
29 | va_end(args); | 31 | va_end(args); |
30 | } | 32 | } |
31 | 33 | ||