diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-03-10 12:57:12 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-03-10 12:57:12 +0000 |
commit | 0873e0d2170db76241bf5afe812acead0d531b8e (patch) | |
tree | bc50b6a1fe32c5b0ae24d1c188f166ea82c278f8 /pjlib/src/pj/log.c | |
parent | 9034bec3635469ec1041e783ac2343c22b64c04c (diff) |
Fixed compilation and run warnings/errors with MSVC 2005
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@315 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/log.c')
-rw-r--r-- | pjlib/src/pj/log.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pjlib/src/pj/log.c b/pjlib/src/pj/log.c index 066e765f..5b6dfe79 100644 --- a/pjlib/src/pj/log.c +++ b/pjlib/src/pj/log.c @@ -20,7 +20,6 @@ #include <pj/log.h> #include <pj/string.h> #include <pj/os.h> -#include <pj/compat/vsprintf.h> #include <pj/compat/stdarg.h> #if PJ_LOG_MAX_LEVEL >= 1 @@ -88,7 +87,7 @@ PJ_DEF(void) pj_log( const char *sender, int level, if (log_decor & PJ_LOG_HAS_DAY_NAME) { static const char *wdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; - strcpy(pre, wdays[ptime.wday]); + pj_ansi_strcpy(pre, wdays[ptime.wday]); pre += 3; } if (log_decor & PJ_LOG_HAS_YEAR) { @@ -137,10 +136,11 @@ PJ_DEF(void) pj_log( const char *sender, int level, len = pre - log_buffer; /* Print the whole message to the string log_buffer. */ - print_len = vsnprintf(pre, sizeof(log_buffer)-len, format, marker); + print_len = pj_ansi_vsnprintf(pre, sizeof(log_buffer)-len, format, + marker); if (print_len < 0) { - print_len = pj_snprintf(pre, sizeof(log_buffer)-len, - "<logging error: msg too long>"); + print_len = pj_ansi_snprintf(pre, sizeof(log_buffer)-len, + "<logging error: msg too long>"); } len = len + print_len; if (len > 0 && len < sizeof(log_buffer)-2) { |