aboutsummaryrefslogtreecommitdiffstats
path: root/src/fldd/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fldd/main.c')
-rw-r--r--src/fldd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fldd/main.c b/src/fldd/main.c
index d9045c425..947c6b4ae 100644
--- a/src/fldd/main.c
+++ b/src/fldd/main.c
@@ -176,7 +176,7 @@ static void copy_libs_for_exe(const char *exe) {
176 if (!ptr_ok(dbuf, base, end, "dbuf")) 176 if (!ptr_ok(dbuf, base, end, "dbuf"))
177 goto close; 177 goto close;
178 // Find DT_RPATH/DT_RUNPATH tags first 178 // Find DT_RPATH/DT_RUNPATH tags first
179 long size = sbuf->sh_size; 179 unsigned long size = sbuf->sh_size;
180 while (size >= sizeof(*dbuf) && ptr_ok(dbuf, base, end, "dbuf")) { 180 while (size >= sizeof(*dbuf) && ptr_ok(dbuf, base, end, "dbuf")) {
181 if (dbuf->d_tag == DT_RPATH || dbuf->d_tag == DT_RUNPATH) { 181 if (dbuf->d_tag == DT_RPATH || dbuf->d_tag == DT_RUNPATH) {
182 const char *searchpath = strbase + dbuf->d_un.d_ptr; 182 const char *searchpath = strbase + dbuf->d_un.d_ptr;