projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7975e7c
)
In Perl_vms_start_glob, when we don't have any matches and thus
author
Craig A. Berry
<craigberry@mac.com>
Thu, 15 Nov 2007 20:49:26 +0000
(20:49 +0000)
committer
Craig A. Berry
<craigberry@mac.com>
Thu, 15 Nov 2007 20:49:26 +0000
(20:49 +0000)
return the input pattern, that doesn't mean clobber the input
scalar. Follow-up to change 30813.
p4raw-id: //depot/perl@32329
vms/vms.c
patch
|
blob
|
history
diff --git
a/vms/vms.c
b/vms/vms.c
index
a6bf64d
..
3a83b8e
100644
(file)
--- 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 &&