fix logging issue

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2004-12-27 22:41:58 +00:00
parent 7488a01ade
commit 6cd0d316e2
3 changed files with 5 additions and 5 deletions

View File

@@ -700,7 +700,7 @@ extern void ast_verbose(const char *fmt, ...)
} /* else
fprintf(stdout, stuff + opos); */
ast_log(LOG_VERBOSE, stuff);
ast_log(LOG_VERBOSE, "%s", stuff);
if (strlen(stuff)) {
if (stuff[strlen(stuff)-1] != '\n')
replacelast = 1;