aboutsummaryrefslogtreecommitdiffstats
path: root/src/fldd/main.c
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@yandex.com>2017-08-15 10:11:08 -0400
committerLibravatar startx2017 <vradu.startx@yandex.com>2017-08-15 10:11:08 -0400
commit2158d8d04e0d88c61b0d7de9f7abc0e54139de75 (patch)
treef9d10bbe13719f8650e6655fa4b262c1b2578efa /src/fldd/main.c
parentfix #1462 (diff)
downloadfirejail-2158d8d04e0d88c61b0d7de9f7abc0e54139de75.tar.gz
firejail-2158d8d04e0d88c61b0d7de9f7abc0e54139de75.tar.zst
firejail-2158d8d04e0d88c61b0d7de9f7abc0e54139de75.zip
compile cleanup
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;