diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-01-01 05:49:01 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-01-01 05:49:01 +0000 |
commit | 88a3caaafeef4600f597d64f640054937c4d9ff4 (patch) | |
tree | 97fb9053a86116544c313f0a55665317bcf1f021 /win32/dir.h | |
parent | a5e6541ad6d382ca35c9b0f90d40f674951ae731 (diff) | |
download | ruby-88a3caaafeef4600f597d64f640054937c4d9ff4.tar.gz |
* win32/win32.c (rb_w32_seekdir): should not segfault even if passed
the location which rb_w32_telldir didn't return. (and should change
`bits' position) [ruby-core:7035]
* win32/dir.h: ditto. (stores `loc' instead of `bitpos')
* test/ruby/test_dir.rb: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/dir.h')
-rw-r--r-- | win32/dir.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/dir.h b/win32/dir.h index e12c6e159c..f472832d28 100644 --- a/win32/dir.h +++ b/win32/dir.h @@ -21,9 +21,9 @@ typedef struct { char *curr; long size; long nfiles; + long loc; /* [0, nfiles) */ struct direct dirstr; char *bits; /* used for d_isdir and d_isrep */ - long bitpos; /* used for d_isdir and d_isrep */ } DIR; |