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:
3b666e4
)
[patch]vms.c - buffer highwater overrun in vmsify
author
John E. Malmberg
<wb8tyw@qsl.net>
Mon, 1 Aug 2005 19:54:22 +0000
(15:54 -0400)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Fri, 5 Aug 2005 16:31:44 +0000
(16:31 +0000)
Message-ID: <
42EEB62E
.3020108@qsl.net>
p4raw-id: //depot/perl@25269
vms/vms.c
patch
|
blob
|
history
diff --git
a/vms/vms.c
b/vms/vms.c
index
9f2cbfe
..
3cfdb71
100644
(file)
--- a/
vms/vms.c
+++ b/
vms/vms.c
@@
-3842,8
+3842,10
@@
static char *mp_do_tovmsspec(pTHX_ const char *path, char *buf, int ts) {
if (!buf && ts) Renew(rslt,strlen(path)-strlen(rslt)+trnend+4,char);
strcpy(rslt,trndev);
cp1 = rslt + trnend;
- *(cp1++) = '.';
- cp2++;
+ if (*cp2 != 0) {
+ *(cp1++) = '.';
+ cp2++;
+ }
}
else {
*(cp1++) = ':';