Errors seen in the wild can easily exceed 256 chars, especially when there is
no limit imposed on maximum file path lengths under most systems. This should
probably be changed at some point, to use realloc instead of a static buffer
on the stack.
git-svn-id: http://opkg.googlecode.com/svn/trunk@530
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
va_start (ap, fmt);
if (level == ERROR) {
-#define MSG_LEN 256
+#define MSG_LEN 4096
char msg[MSG_LEN];
if (vsnprintf(msg, MSG_LEN, fmt, ap) >= MSG_LEN) {
fprintf(stderr, "%s: Message truncated!\n",