summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.ohio-state.edu>1997-04-30 15:20:01 -0400
committerChip Salzenberg <chip@atlantic.net>1997-05-01 00:00:00 +1200
commit2cc2f81ffdcb05e1371551fe83121e4d44ead3b6 (patch)
tree900f474521851a45393968dc9dc2ec5e68c8276b
parent064096e1fdaab07bcd3ebf7726fe67a5ae16c76f (diff)
downloadperl-2cc2f81ffdcb05e1371551fe83121e4d44ead3b6.tar.gz
Fix OS/2-specific buffer overflow
private-msgid: 199704301920.PAA09681@monk.mps.ohio-state.edu
-rw-r--r--os2/os2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os2/os2.c b/os2/os2.c
index b658ea8690..c45dfecd1e 100644
--- a/os2/os2.c
+++ b/os2/os2.c
@@ -321,7 +321,7 @@ int execf;
if (strnEQ(cmd,"/bin/sh",7) && isSPACE(cmd[7])) {
STRLEN l = strlen(sh_path);
- New(1302, news, strlen(cmd) - 7 + l, char);
+ New(1302, news, strlen(cmd) - 7 + l + 1, char);
strcpy(news, sh_path);
strcpy(news + l, cmd + 7);
cmd = news;