summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorJohn E. Malmberg <wb8tyw@qsl.net>2006-01-02 09:05:43 -0500
committerCraig A. Berry <craigberry@mac.com>2006-01-02 19:22:52 +0000
commitbbdb6c9ad82eade42e29725b24ecabf73dd608fb (patch)
tree8488e4d3a9f04e54c32f4899c59fa1099ad18e5c /vms
parent835f2d759d81e3e330b5abfa90986b335f0e03bb (diff)
downloadperl-bbdb6c9ad82eade42e29725b24ecabf73dd608fb.tar.gz
patch@26561 & earlier - buffer overrun in VMS.C
From: "John E. Malmberg" <wb8tyw@qsl.net> Message-id: <43B97987.70201@qsl.net> p4raw-id: //depot/perl@26581
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vms/vms.c b/vms/vms.c
index a9145063a3..ac47224250 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -4830,7 +4830,7 @@ static char *mp_do_fileify_dirspec(pTHX_ const char *dir,char *buf,int ts)
else retspec = __fileify_retbuf;
cp1 = esa;
cp2 = retspec;
- while (*cp1 != ':') *(cp2++) = *(cp1++);
+ while ((*cp1 != ':') && (*cp1 != '\0')) *(cp2++) = *(cp1++);
strcpy(cp2,":[000000]");
cp1 += 2;
strcpy(cp2+9,cp1);