summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2007-11-15 20:49:26 +0000
committerCraig A. Berry <craigberry@mac.com>2007-11-15 20:49:26 +0000
commit2da7a6b5eab232c468b68576568f84877f032fd6 (patch)
tree40a61e2b29d752f967d704b816cc4cd50056be81 /vms
parent7975e7c1b083ab9cf41ec047e6e53ed2c94f8063 (diff)
downloadperl-2da7a6b5eab232c468b68576568f84877f032fd6.tar.gz
In Perl_vms_start_glob, when we don't have any matches and thus
return the input pattern, that doesn't mean clobber the input scalar. Follow-up to change 30813. p4raw-id: //depot/perl@32329
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vms/vms.c b/vms/vms.c
index a6bf64d855..3a83b8e088 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -12876,9 +12876,9 @@ Perl_vms_start_glob
if (!found) {
/* Be POSIXish: return the input pattern when no matches */
- begin = SvPVX(tmpglob);
- strcat(begin,"\n");
- ok = (PerlIO_puts(tmpfp,begin) != EOF);
+ strcpy(rstr,SvPVX(tmpglob));
+ strcat(rstr,"\n");
+ ok = (PerlIO_puts(tmpfp,rstr) != EOF);
}
if (ok && sts != RMS$_NMF &&