From 93f94163018e7e79241938dff1df2e52d9cbc51d Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Mon, 24 Oct 2016 09:43:54 -0700 Subject: Fix -Wformat-length warning in tst-setgetname.c * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size. --- ChangeLog | 4 ++++ sysdeps/unix/sysv/linux/tst-setgetname.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2520c44..9b9c323 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-10-24 Steve Ellcey + + * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size. + 2016-10-22 Florian Weimer * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern diff --git a/sysdeps/unix/sysv/linux/tst-setgetname.c b/sysdeps/unix/sysv/linux/tst-setgetname.c index f490d83..30fbe4e 100644 --- a/sysdeps/unix/sysv/linux/tst-setgetname.c +++ b/sysdeps/unix/sysv/linux/tst-setgetname.c @@ -56,7 +56,7 @@ get_self_comm (long tid, char *buf, size_t len) { int res = 0; #define FMT "/proc/self/task/%lu/comm" - char fname[sizeof (FMT) + 8]; + char fname[sizeof (FMT) + 32]; sprintf (fname, FMT, (unsigned long) tid); int fd = open (fname, O_RDONLY); -- cgit v1.1