diff options
Diffstat (limited to 'src/firejail/appimage_size.c')
-rw-r--r-- | src/firejail/appimage_size.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/firejail/appimage_size.c b/src/firejail/appimage_size.c index 6bb530d12..60c4c0364 100644 --- a/src/firejail/appimage_size.c +++ b/src/firejail/appimage_size.c | |||
@@ -17,8 +17,9 @@ | |||
17 | * with this program; if not, write to the Free Software Foundation, Inc., | 17 | * with this program; if not, write to the Free Software Foundation, Inc., |
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
19 | */ | 19 | */ |
20 | |||
20 | /* | 21 | /* |
21 | This code borrows heavily from src/libappimage_shared/elf.c in libappimage | 22 | * This code borrows heavily from src/libappimage_shared/elf.c in libappimage |
22 | */ | 23 | */ |
23 | /* | 24 | /* |
24 | Compile with: | 25 | Compile with: |
@@ -144,7 +145,7 @@ long unsigned int appimage2_size(int fd) { | |||
144 | return 0; | 145 | return 0; |
145 | 146 | ||
146 | if ((ehdr.e_ident[EI_DATA] != ELFDATA2LSB) && | 147 | if ((ehdr.e_ident[EI_DATA] != ELFDATA2LSB) && |
147 | (ehdr.e_ident[EI_DATA] != ELFDATA2MSB)) | 148 | (ehdr.e_ident[EI_DATA] != ELFDATA2MSB)) |
148 | return 0; | 149 | return 0; |
149 | 150 | ||
150 | if(ehdr.e_ident[EI_CLASS] == ELFCLASS32) { | 151 | if(ehdr.e_ident[EI_CLASS] == ELFCLASS32) { |