diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-08-29 22:17:56 +0000 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1996-08-29 22:17:56 +0000 |
commit | 89078e0fc0659c720f21de63d8d61f6f995a7d0b (patch) | |
tree | 804e94af82c6f322a52df712d6326249179d7888 /os2 | |
parent | f9c39ab5a6cdb6cfac24b91370f674b8f80133a9 (diff) | |
download | perl-89078e0fc0659c720f21de63d8d61f6f995a7d0b.tar.gz |
SH_PATH_INI vs. BIN_SH
Diffstat (limited to 'os2')
-rw-r--r-- | os2/os2.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -635,7 +635,7 @@ Perl_OS2_init() } } -char sh_path[STATIC_FILE_LENGTH+1] = BIN_SH; +char sh_path[STATIC_FILE_LENGTH+1] = SH_PATH_INI; char * perllib_mangle(char *s, unsigned int l) @@ -648,7 +648,7 @@ perllib_mangle(char *s, unsigned int l) newp = getenv("PERLLIB_PREFIX"); if (newp) { oldp = newp; - while (*newp && !isSPACE(*newp)) { + while (*newp && !isSPACE(*newp) && *newp != ';') { newp++; oldl++; /* Skip digits. */ } while (*newp && (isSPACE(*newp) || *newp == ';')) { @@ -675,7 +675,7 @@ perllib_mangle(char *s, unsigned int l) die("Malformed PERLLIB_PREFIX"); } strncpy(ret, newp, newl); - strncpy(ret + newl, s + oldl, l - oldl); + strcpy(ret + newl, s + oldl); return ret; } |