View | Details | Raw Unified | Return to bug 23549
Collapse All | Expand All

(-)ldd.c (-1 / +1 lines)
Lines 153-159 Link Here
153
				warnx("%s: can't read program header", *argv);
153
				warnx("%s: can't read program header", *argv);
154
				file_ok = 0;
154
				file_ok = 0;
155
			}
155
			}
156
			lseek(fd, 0, ehdr.e_phoff);
156
			lseek(fd, ehdr.e_phoff, SEEK_SET);
157
			for (i = 0; i < ehdr.e_phnum; i++) {
157
			for (i = 0; i < ehdr.e_phnum; i++) {
158
				if (read(fd, &phdr, ehdr.e_phentsize)
158
				if (read(fd, &phdr, ehdr.e_phentsize)
159
				   != sizeof phdr) {
159
				   != sizeof phdr) {

Return to bug 23549