diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-26 15:43:16 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-26 15:43:16 +0000 |
commit | 2d294adb45dfd692f9b4e0a7052646de8c63e46b (patch) | |
tree | 70984ff06e5fc72a54c1bb408828dbcdfdf67e36 /logger.c | |
parent | 91b64633f77172d7ee2312517d4f8a5e9dfea09e (diff) |
ensure that if the verbose buffer is full, we send it out even if it's not complete (issue #5263, patch modified to actually compile)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6662 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'logger.c')
-rwxr-xr-x | logger.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -861,6 +861,12 @@ void ast_verbose(const char *fmt, ...) complete = (stuff[len - 1] == '\n') ? 1 : 0; + /* If we filled up the stuff completely, then log it even without the '\n' */ + if (len >= sizeof(stuff) - 1) { + complete = 1; + len = 0; + } + if (complete) { if (msgcnt < MAX_MSG_QUEUE) { /* Allocate new structure */ |