summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorJohn E. Malmberg <wb8tyw@qsl.net>2006-06-26 04:24:57 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-06-26 12:31:19 +0000
commitae6d78fe4808b27531735d79233a7a8308309529 (patch)
treede1fc1685d5c33283f837f813485361f8fd2472b /vms
parente3950ac3c808dcb52f5815999e90a3e00a9f7159 (diff)
downloadperl-ae6d78fe4808b27531735d79233a7a8308309529.tar.gz
[patch@28427] vms.c - null termination of string missing.
From: "John E. Malmberg" <wb8tyw@qsl.net> Message-ID: <449FD219.5060900@qsl.net> p4raw-id: //depot/perl@28429
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vms/vms.c b/vms/vms.c
index 8a30a55d42..62b17a03bc 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -5148,6 +5148,7 @@ static char *mp_do_fileify_dirspec(pTHX_ const char *dir,char *buf,int ts, int *
}
}
}
+ esa[rms_nam_esll(dirnam)] = '\0';
if (!rms_is_nam_fnb(dirnam, (NAM$M_EXP_DEV | NAM$M_EXP_DIR))) {
cp1 = strchr(esa,']');
if (!cp1) cp1 = strchr(esa,'>');
@@ -5170,7 +5171,7 @@ static char *mp_do_fileify_dirspec(pTHX_ const char *dir,char *buf,int ts, int *
return NULL;
}
}
- esa[rms_nam_esll(dirnam)] = '\0';
+
if (rms_is_nam_fnb(dirnam, NAM$M_EXP_NAME)) {
/* They provided at least the name; we added the type, if necessary, */
if (buf) retspec = buf; /* in sys$parse() */