Increase buffer size due to warning from ToT GCC

* nscd/dbg_log.c (dbg_log): Increase msg buffer size.
This commit is contained in:
Steve Ellcey 2017-12-15 09:08:23 -08:00
parent d232f2e137
commit a7e3edf4f2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2017-12-15 Steve Ellcey <sellcey@cavium.com>
* nscd/dbg_log.c (dbg_log): Increase msg buffer size.
2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
* sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set

View File

@ -67,7 +67,7 @@ dbg_log (const char *fmt,...)
char buf[256];
strftime (buf, sizeof (buf), "%c", &now);
char msg[512];
char msg[1024];
snprintf (msg, sizeof (msg), "%s - %d: %s%s", buf, getpid (), msg2,
msg2[strlen (msg2) - 1] == '\n' ? "" : "\n");
if (dbgout)