mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
Fix -Wformat-length warning in tst-setgetname.c
* sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
This commit is contained in:
parent
e37208ce86
commit
93f9416301
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user