diff options
author | John E. Malmberg <wb8tyw@qsl.net> | 2006-06-26 04:24:57 -0400 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-06-26 12:31:19 +0000 |
commit | ae6d78fe4808b27531735d79233a7a8308309529 (patch) | |
tree | de1fc1685d5c33283f837f813485361f8fd2472b /vms | |
parent | e3950ac3c808dcb52f5815999e90a3e00a9f7159 (diff) | |
download | perl-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() */ |