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:
66facaa
)
Remove a spurious strlen in VMS's readdir().
author
Craig A. Berry
<craigberry@mac.com>
Sat, 1 Dec 2012 03:47:03 +0000
(21:47 -0600)
committer
Craig A. Berry
<craigberry@mac.com>
Sat, 1 Dec 2012 03:47:03 +0000
(21:47 -0600)
After setting the null byte, we turned around and pretended we
didn't know where it was and went hunting for it. Hmm.
vms/vms.c
patch
|
blob
|
history
diff --git
a/vms/vms.c
b/vms/vms.c
index
6ff851f
..
38c4ff1
100644
(file)
--- a/
vms/vms.c
+++ b/
vms/vms.c
@@
-10176,7
+10176,7
@@
Perl_readdir(pTHX_ DIR *dd)
memcpy(dd->entry.d_name, n_spec, n_len + e_len);
dd->entry.d_name[n_len + e_len] = '\0';
- dd->entry.d_namlen =
strlen(dd->entry.d_name)
;
+ dd->entry.d_namlen =
n_len + e_len
;
/* Convert the filename to UNIX format if needed */
if (dd->flags & PERL_VMSDIR_M_UNIXSPECS) {