summaryrefslogtreecommitdiff
path: root/os2
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-08-29 22:17:56 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-08-29 22:17:56 +0000
commit89078e0fc0659c720f21de63d8d61f6f995a7d0b (patch)
tree804e94af82c6f322a52df712d6326249179d7888 /os2
parentf9c39ab5a6cdb6cfac24b91370f674b8f80133a9 (diff)
downloadperl-89078e0fc0659c720f21de63d8d61f6f995a7d0b.tar.gz
SH_PATH_INI vs. BIN_SH
Diffstat (limited to 'os2')
-rw-r--r--os2/os2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/os2/os2.c b/os2/os2.c
index 05ebae94e5..d5d761e9b7 100644
--- a/os2/os2.c
+++ b/os2/os2.c
@@ -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;
}