diff options
author | Steve Ellcey <sellcey@caviumnetworks.com> | 2016-10-24 09:43:54 -0700 |
---|---|---|
committer | Steve Ellcey <sellcey@caviumnetworks.com> | 2016-10-24 09:43:54 -0700 |
commit | 93f94163018e7e79241938dff1df2e52d9cbc51d (patch) | |
tree | af0d36e136f2ed27c563ce5c3b2f23f0739f6cef /sysdeps/unix/sysv/linux | |
parent | e37208ce86916af9510ffb9ce7b3c187986f07de (diff) | |
download | glibc-93f94163018e7e79241938dff1df2e52d9cbc51d.tar.gz glibc-93f94163018e7e79241938dff1df2e52d9cbc51d.tar.xz glibc-93f94163018e7e79241938dff1df2e52d9cbc51d.zip |
Fix -Wformat-length warning in tst-setgetname.c
* sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r-- | sysdeps/unix/sysv/linux/tst-setgetname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-setgetname.c b/sysdeps/unix/sysv/linux/tst-setgetname.c index f490d8354c..30fbe4e790 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); |