Browse Source

dynlink: fix get_lfs64() with posix_fallocate64

"posix_fallocate64" is 17 characters long, so 16 is one too short.
Florian Ziesche 5 months ago
parent
commit
53ac44ff4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldso/dynlink.c

+ 1 - 1
ldso/dynlink.c

@@ -363,7 +363,7 @@ static struct symdef get_lfs64(const char *name)
 		"stat\0statfs\0statvfs\0tmpfile\0truncate\0versionsort\0"
 		"stat\0statfs\0statvfs\0tmpfile\0truncate\0versionsort\0"
 		"__fxstat\0__fxstatat\0__lxstat\0__xstat\0";
 		"__fxstat\0__fxstatat\0__lxstat\0__xstat\0";
 	size_t l;
 	size_t l;
-	char buf[16];
+	char buf[17];
 	for (l=0; name[l]; l++) {
 	for (l=0; name[l]; l++) {
 		if (l >= sizeof buf) goto nomatch;
 		if (l >= sizeof buf) goto nomatch;
 		buf[l] = name[l];
 		buf[l] = name[l];