diff options
author | Florian Ziesche <florian.ziesche@gmail.com> | 2024-06-20 22:44:35 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2024-06-20 22:44:35 -0400 |
commit | 53ac44ff4c0e91536e1e34e8e59e19d2a1196a67 (patch) | |
tree | eb4a9d764fd11a0beb7ccaac21ef51912a86ce7b | |
parent | 895736d49bd2bb318c69de99a05ea70c035c2da9 (diff) | |
download | musl-53ac44ff4c0e91536e1e34e8e59e19d2a1196a67.zip musl-53ac44ff4c0e91536e1e34e8e59e19d2a1196a67.tar.gz musl-53ac44ff4c0e91536e1e34e8e59e19d2a1196a67.tar.bz2 |
dynlink: fix get_lfs64() with posix_fallocate64
"posix_fallocate64" is 17 characters long, so 16 is one too short.
-rw-r--r-- | ldso/dynlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/dynlink.c b/ldso/dynlink.c index 42687da..8707ae1 100644 --- a/ldso/dynlink.c +++ b/ldso/dynlink.c @@ -363,7 +363,7 @@ static struct symdef get_lfs64(const char *name) "stat\0statfs\0statvfs\0tmpfile\0truncate\0versionsort\0" "__fxstat\0__fxstatat\0__lxstat\0__xstat\0"; size_t l; - char buf[16]; + char buf[17]; for (l=0; name[l]; l++) { if (l >= sizeof buf) goto nomatch; buf[l] = name[l]; |