Fix -Wformat-length warning in tst-setgetname.c

* sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
This commit is contained in:
Steve Ellcey 2016-10-24 09:43:54 -07:00
parent e37208ce86
commit 93f9416301
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2016-10-24 Steve Ellcey <sellcey@caviumnetworks.com>
* sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
2016-10-22 Florian Weimer <fweimer@redhat.com>
* math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern

View File

@ -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);