/[hurd]/hurd-l4/wortel/wortel.c
ViewVC logotype

Diff of /hurd-l4/wortel/wortel.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.38 by marcus, Tue Jan 25 23:54:58 2005 UTC revision 1.39 by marcus, Wed Jan 26 11:06:37 2005 UTC
# Line 539  start_elf (unsigned int mod) Line 539  start_elf (unsigned int mod)
539    
540        /* Determine the argument line dimensions.  */        /* Determine the argument line dimensions.  */
541        src = mods[mod].args;        src = mods[mod].args;
542          /* The below code will automatically copy the trailing zero byte
543             over if we include it in the length.  */
544        len = strlen (src) + 1;        len = strlen (src) + 1;
545        ALLOCA (len);        ALLOCA (len);
546        argz = (char *) stack;        argz = (char *) stack;
# Line 563  start_elf (unsigned int mod) Line 565  start_elf (unsigned int mod)
565                    argz_len++;                    argz_len++;
566                  }                  }
567                while (len && !(*src == ' ' || *src == '\t'));                while (len && !(*src == ' ' || *src == '\t'));
   
               *(dst++) = '\0';  
               argz_len++;  
568              }              }
569          }          }
570      }      }

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26