chrpath/chrpath-0.13-NULL-entry.patch

15 lines
432 B
Diff

--- killrpath.c 2010-11-28 23:58:20.000000000 +0100
+++ killrpath.c.fix 2010-11-29 00:00:50.000000000 +0100
@@ -74,7 +74,10 @@
dynpos++;
}
for (; dynpos < i; dynpos++)
- dyns[dynpos].d_tag = DT_NULL;
+ {
+ dyns[dynpos].d_tag = DT_NULL;
+ dyns[dynpos].d_un.d_val = 0x0;
+ }
if (lseek(fd, phdr.p_offset, SEEK_SET) == -1
|| write(fd, dyns, phdr.p_filesz) != (int)phdr.p_filesz)