aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Ellcey <sellcey@caviumnetworks.com>2017-12-15 09:08:23 -0800
committerSteve Ellcey <sellcey@caviumnetworks.com>2017-12-15 09:08:23 -0800
commita7e3edf4f252fb72afeb8ecca946a2d8294bb577 (patch)
tree25a36cd09e617c66451bd5787a46710284c11571
parentd232f2e137127139addde487f0f01881b52cc446 (diff)
downloadglibc-a7e3edf4f252fb72afeb8ecca946a2d8294bb577.zip
glibc-a7e3edf4f252fb72afeb8ecca946a2d8294bb577.tar.gz
glibc-a7e3edf4f252fb72afeb8ecca946a2d8294bb577.tar.bz2
Increase buffer size due to warning from ToT GCC
* nscd/dbg_log.c (dbg_log): Increase msg buffer size.
-rw-r--r--ChangeLog4
-rw-r--r--nscd/dbg_log.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 027f948..e96b2b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/nscd/dbg_log.c b/nscd/dbg_log.c
index d4b19ac..2190c16 100644
--- a/nscd/dbg_log.c
+++ b/nscd/dbg_log.c
@@ -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)