diff options
author | Karl Williamson <khw@cpan.org> | 2020-08-19 14:56:22 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-08-19 16:12:19 -0600 |
commit | da9bc0ee1160a17038019490833f71bbc6bfa31e (patch) | |
tree | 127b6ddaf17df4d530b83586c100c72813aa26f6 | |
parent | d4371c8e432b4efc22914aef93dc3d8d5d8f2a1e (diff) | |
download | perl-da9bc0ee1160a17038019490833f71bbc6bfa31e.tar.gz |
vms.c: Convert to use av_count()
-rw-r--r-- | vms/vms.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12889,7 +12889,7 @@ mod2fname(pTHX_ CV *cv) int max_name_len = 39; AV *in_array = (AV *)SvRV(ST(0)); - num_entries = av_tindex(in_array); + num_entries = av_count(in_array); /* All the names start with PL_. */ strcpy(ultimate_name, "PL_"); @@ -12898,7 +12898,7 @@ mod2fname(pTHX_ CV *cv) Zero(work_name, sizeof(work_name), char); /* Run through the entries and build up a working name */ - for(counter = 0; counter <= num_entries; counter++) { + for(counter = 0; counter < num_entries; counter++) { /* If it's not the first name then tack on a __ */ if (counter) { my_strlcat(work_name, "__", sizeof(work_name)); |