Fix logger
authorMark Spencer <markster@digium.com>
Tue, 16 Nov 2004 13:52:35 +0000 (13:52 +0000)
committerMark Spencer <markster@digium.com>
Tue, 16 Nov 2004 13:52:35 +0000 (13:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4263 65c4cc65-6c06-0410-ace0-fbb531ad65f3

logger.c

index 853f0d8..e88a3cb 100755 (executable)
--- a/logger.c
+++ b/logger.c
@@ -615,7 +615,7 @@ extern void ast_verbose(const char *fmt, ...)
        vsnprintf(stuff + pos, sizeof(stuff) - pos, fmt, ap);
        opos = pos;
        pos = strlen(stuff);
-       if (fmt[strlen(fmt)-1] == '\n') 
+       if (stuff[strlen(stuff)-1] == '\n') 
                complete = 1;
        else
                complete=0;