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/errno.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/errno.c')
-rw-r--r-- | pjlib/src/pj/errno.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pjlib/src/pj/errno.c b/pjlib/src/pj/errno.c index 9536288e..9843105c 100644 --- a/pjlib/src/pj/errno.c +++ b/pjlib/src/pj/errno.c @@ -19,7 +19,6 @@ #include <pj/errno.h> #include <pj/string.h> #include <pj/assert.h> -#include <pj/compat/sprintf.h> /* Prototype for platform specific error message, which will be defined * in separate file. @@ -141,7 +140,7 @@ PJ_DEF(pj_str_t) pj_strerror( pj_status_t statcode, pj_assert(buf && bufsize); if (statcode < PJ_ERRNO_START + PJ_ERRNO_SPACE_SIZE) { - len = pj_snprintf( buf, bufsize, "Unknown error %d", statcode); + len = pj_ansi_snprintf( buf, bufsize, "Unknown error %d", statcode); } else if (statcode < PJ_ERRNO_START_STATUS + PJ_ERRNO_SPACE_SIZE) { len = pjlib_error(statcode, buf, bufsize); |