summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-29 23:35:50 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-29 23:35:50 +0000
commit1250aba519c4f388317ce9822edbe8ca724e1616 (patch)
tree50d370d14892261902c9de0f46db154cb1ffa987 /vms
parent57e73c4b0ab7f637f07667e3f6fda277d0671dc3 (diff)
downloadperl-1250aba519c4f388317ce9822edbe8ca724e1616.tar.gz
VMS fixups (from Dan Sugalski); cosmetic tweaks
p4raw-id: //depot/perl@5378
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vms/vms.c b/vms/vms.c
index ba4fada81e..7327b75b6f 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -616,6 +616,13 @@ vmssetenv(char *lnm, char *eqv, struct dsc$descriptor_s **tabvec)
}
else {
if (!*eqv) eqvdsc.dsc$w_length = 1;
+ if (eqvdsc.dsc$w_length > LNM$C_NAMLENGTH) {
+ eqvdsc.dsc$w_length = LNM$C_NAMLENGTH;
+ if (ckWARN(WARN_MISC)) {
+ Perl_warner(aTHX_ WARN_MISC,"Value of logical \"%s\" too long. "
+ "Truncating to %i bytes",lnm, LNM$C_NAMLENGTH);
+ }
+ }
retsts = lib$set_logical(&lnmdsc,&eqvdsc,tabvec[0],0,0);
}
}