diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-10-13 13:48:56 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-10-13 13:48:56 +0000 |
commit | 3059b9a2a392f818ec3d92685bc3f894bc0fa857 (patch) | |
tree | f2255427fa5d4f1cc0c71847fc61b9db49cf32c4 /pjlib | |
parent | 8c3da73afb23c9b2046ed758ed759648b3f6bc4e (diff) |
Fixed bug in log length calculation (null character was included) [thanks Klaus Darilion]
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@767 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r-- | pjlib/src/pj/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pjlib/src/pj/log.c b/pjlib/src/pj/log.c index d1bef5c4..5688e9ff 100644 --- a/pjlib/src/pj/log.c +++ b/pjlib/src/pj/log.c @@ -151,7 +151,7 @@ PJ_DEF(void) pj_log( const char *sender, int level, if (log_decor & PJ_LOG_HAS_NEWLINE) { log_buffer[len++] = '\n'; } - log_buffer[len++] = '\0'; + log_buffer[len] = '\0'; } else { len = sizeof(log_buffer)-1; if (log_decor & PJ_LOG_HAS_CR) { |