Commit eabb59cb authored by Dimitri van Heesch's avatar Dimitri van Heesch

Merge pull request #204 from albert-github/feature/bug_message_length

Messages truncated in warnings file
parents 88468313 cc4f3b45
...@@ -152,15 +152,15 @@ static void format_warn(const char *file,int line,const char *text) ...@@ -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) 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 if (!Config_getBool(tag)) return; // warning type disabled
char text[4096]; char text[40960];
int l=0; int l=0;
if (prefix) if (prefix)
{ {
strcpy(text,prefix); strcpy(text,prefix);
l=strlen(prefix); l=strlen(prefix);
} }
vsnprintf(text+l, 4096-l, fmt, args); vsnprintf(text+l, 40960-l, fmt, args);
text[4095]='\0'; text[40960-1]='\0';
format_warn(file,line,text); format_warn(file,line,text);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment