[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

elf2aout.c fix & typo correction.



--- 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