Skip to content
Snippets Groups Projects
Commit ef74e243 authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix little logging issue

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent bb6493c8
No related branches found
No related tags found
No related merge requests found
......@@ -615,6 +615,7 @@ extern void ast_verbose(const char *fmt, ...)
vsnprintf(stuff + pos, sizeof(stuff) - pos, fmt, ap);
opos = pos;
pos = strlen(stuff);
if (stuff[strlen(stuff)-1] == '\n')
complete = 1;
else
......@@ -656,11 +657,12 @@ extern void ast_verbose(const char *fmt, ...)
fprintf(stdout, stuff + opos); */
ast_log(LOG_VERBOSE, stuff);
if (fmt[strlen(fmt)-1] != '\n')
replacelast = 1;
else
replacelast = pos = 0;
if (strlen(stuff)) {
if (stuff[strlen(stuff)-1] != '\n')
replacelast = 1;
else
replacelast = pos = 0;
}
va_end(ap);
ast_mutex_unlock(&msglist_lock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment