Page MenuHomeFreeBSD

D1543.diff
No OneTemporary

D1543.diff

Index: usr.sbin/crunch/crunchide/exec_elf32.c
===================================================================
--- usr.sbin/crunch/crunchide/exec_elf32.c
+++ usr.sbin/crunch/crunchide/exec_elf32.c
@@ -46,6 +46,7 @@
#include <errno.h>
#include <limits.h>
+#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -464,7 +465,7 @@
if (layoutp[i].shdr == &shdrshdr &&
ehdr.e_shoff != shdrshdr.sh_offset) {
ehdr.e_shoff = shdrshdr.sh_offset;
- off = (ELFSIZE == 32) ? 32 : 44;
+ off = offsetof(Elf_Ehdr, e_shoff);
size = sizeof(Elf_Off);
if ((size_t)xwriteatoff(fd, &ehdr.e_shoff, off, size,
fn) != size)

File Metadata

Mime Type
text/plain
Expires
Sat, Jun 27, 10:31 PM (16 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34418009
Default Alt Text
D1543.diff (678 B)

Event Timeline