diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-29 23:35:50 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-29 23:35:50 +0000 |
commit | 1250aba519c4f388317ce9822edbe8ca724e1616 (patch) | |
tree | 50d370d14892261902c9de0f46db154cb1ffa987 /vms | |
parent | 57e73c4b0ab7f637f07667e3f6fda277d0671dc3 (diff) | |
download | perl-1250aba519c4f388317ce9822edbe8ca724e1616.tar.gz |
VMS fixups (from Dan Sugalski); cosmetic tweaks
p4raw-id: //depot/perl@5378
Diffstat (limited to 'vms')
-rw-r--r-- | vms/vms.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); } } |