Don't show partially-filled strings over remote console (asterisk -r) (bug #2764)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4150 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2004-11-02 22:37:47 +00:00
parent d612a5ce42
commit 4443cc2107

View File

@@ -247,13 +247,15 @@ static void network_verboser(const char *s, int pos, int replace, int complete)
char *t = alloca(strlen(s) + 2);
if (t) {
sprintf(t, "\r%s", s);
ast_network_puts(t);
if (complete)
ast_network_puts(t);
} else {
ast_log(LOG_ERROR, "Out of memory\n");
ast_network_puts(s);
}
} else {
ast_network_puts(s);
if (complete)
ast_network_puts(s);
}
}