[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
elf2aout.c fix & typo correction.
- To: bugs_(_at_)_openbsd_(_dot_)_org
- Subject: elf2aout.c fix & typo correction.
- From: Erick Borsboom <erick_(_at_)_bonzai_(_dot_)_space-ei_(_dot_)_nl>
- Date: Wed, 26 Nov 2003 23:04:23 +0100
- Reply-to: erick_(_at_)_bonzai_(_dot_)_space-ei_(_dot_)_nl
--- elf2aout.c.orig Wed Jun 11 00:20:46 2003
+++ elf2aout.c Tue Nov 25 17:16:23 2003
@@ -174,7 +174,8 @@
/* Section types we can't handle... */
else if (ph[i].p_type != PT_LOAD) {
fprintf(stderr,
- "Program header %d type %d can't be
converted.\n");
+ "Program header %d type %d can't be
converted.\n",
+ i, ph[i].p_type);
exit(1);
}
/* Writable (data) segment? */
@@ -341,7 +342,7 @@
/* Initialize the table pointer... */
nsp = newstrings;
- /* Go the the start of the ELF symbol table... */
+ /* Go to the start of the ELF symbol table... */
if (lseek(in, symoff, SEEK_SET) < 0) {
perror("translate_syms: lseek");
exit(1);
@@ -418,7 +419,7 @@
char ibuf[4096];
int remaining, cur, count;
- /* Go the the start of the ELF symbol table... */
+ /* Go to the start of the ELF symbol table... */
if (lseek(in, offset, SEEK_SET) < 0) {
perror("copy: lseek");
exit(1);
Visit your host, monkey.org