summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2014-07-30 13:32:56 (GMT)
committeralbert-github <albert.tests@gmail.com>2014-07-30 13:32:56 (GMT)
commitcc4f3b454cae7d3e9eaa44342bcbae1061f5e790 (patch)
tree4595e8350e94870d2af6e6edbc83e5df912af501
parentc9d816aaf20c24c624407ba1c2eb4e00eff0c02f (diff)
downloadDoxygen-cc4f3b454cae7d3e9eaa44342bcbae1061f5e790.zip
Doxygen-cc4f3b454cae7d3e9eaa44342bcbae1061f5e790.tar.gz
Doxygen-cc4f3b454cae7d3e9eaa44342bcbae1061f5e790.tar.bz2
Messages truncated in warnings file
The current limit for a message length in the messages file is 4095 characters. Most of the time this is more than sufficient, but in case of Fortran and a lot of arguments this might not be sufficient. With Fortran the "data type" can be quite long as it can also includes words like: double precision, dimension, intent(inout) etc. When we have a lot of arguments and just one is described it also tries to write out the names of the non-described parameter/ arguments with the word parameter prepended resulting in an even longer line. This patch increases the size of the buffer.
-rw-r--r--src/message.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/message.cpp b/src/message.cpp
index 8e4ecbd..11b4502 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -152,15 +152,15 @@ static void format_warn(const char *file,int line,const char *text)
static void do_warn(const char *tag, const char *file, int line, const char *prefix, const char *fmt, va_list args)
{
if (!Config_getBool(tag)) return; // warning type disabled
- char text[4096];
+ char text[40960];
int l=0;
if (prefix)
{
strcpy(text,prefix);
l=strlen(prefix);
}
- vsnprintf(text+l, 4096-l, fmt, args);
- text[4095]='\0';
+ vsnprintf(text+l, 40960-l, fmt, args);
+ text[40960-1]='\0';
format_warn(file,line,text);
}