summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-08-22 00:41:22 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-08-22 00:41:22 -0500
commit4ac4d7f60f04ffac3385f0e005260194733acf0a (patch)
tree7e190ee6f353dfd3773e493a692405a18f75fe43 /libgcompat
parent4bd46a4cd4b2407aa04fa2da1fdafbdcf15cfe24 (diff)
downloadgcompat-4ac4d7f60f04ffac3385f0e005260194733acf0a.tar.gz
gcompat-4ac4d7f60f04ffac3385f0e005260194733acf0a.tar.bz2
gcompat-4ac4d7f60f04ffac3385f0e005260194733acf0a.tar.xz
gcompat-4ac4d7f60f04ffac3385f0e005260194733acf0a.zip
readlink: Update to correspond with loader changes
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/readlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcompat/readlink.c b/libgcompat/readlink.c
index 9b3e2dd..42501fe 100644
--- a/libgcompat/readlink.c
+++ b/libgcompat/readlink.c
@@ -50,7 +50,7 @@ ssize_t readlink(const char *path, char *buf, size_t len)
/* Skip the --argv0/--preload ldso args.
* This number must be kept in sync with the
* argument order in loader/loader.c */
- while (arg < 5) {
+ while (arg < 6) {
if (read(fd, &c, 1) != 1) {
goto fail_close;
}