prevent seg faults

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2004-12-27 22:34:25 +00:00
parent 8060744e05
commit cc8996361c
3 changed files with 5 additions and 5 deletions

View File

@@ -649,7 +649,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 (fmt[strlen(fmt)-1] != '\n')
replacelast = 1;