Put a NUL after vsnprintf() buffer (needed only for Windows).

git-svn-id: http://yate.null.ro/svn/yate/trunk@2203 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2008-09-16 15:25:26 +00:00
parent c3135a1b52
commit 74ce0a148a
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ static void dbg_output(int level,const char* prefix, const char* format, va_list
l = sizeof(buf)-n-2;
if (format) {
::vsnprintf(buf+n,l,format,ap);
buf[OUT_BUFFER_SIZE - 2] = 0;
}
common_output(level,buf);
}