]>
Commit | Line | Data |
---|---|---|
250e941e MT |
1 | diff -uNr chrpath-0.13.old/killrpath.c chrpath-0.13/killrpath.c |
2 | --- chrpath-0.13.old/killrpath.c 2003-06-24 00:46:15.000000000 +0200 | |
3 | +++ chrpath-0.13/killrpath.c 2009-07-19 23:05:11.000000000 +0200 | |
4 | @@ -73,8 +73,11 @@ | |
5 | if ( ! elf_dynpath_tag(dyns[i].d_tag) ) | |
6 | dynpos++; | |
7 | } | |
8 | - for (; dynpos < i; dynpos++) | |
9 | + for (; dynpos < i; dynpos++) { | |
10 | dyns[dynpos].d_tag = DT_NULL; | |
11 | + dyns[dynpos].d_un.d_val = 0x0; | |
12 | + } | |
13 | + | |
14 | ||
15 | if (lseek(fd, phdr.p_offset, SEEK_SET) == -1 | |
16 | || write(fd, dyns, phdr.p_filesz) != (int)phdr.p_filesz) |