From 88a3caaafeef4600f597d64f640054937c4d9ff4 Mon Sep 17 00:00:00 2001 From: ocean Date: Sun, 1 Jan 2006 05:49:01 +0000 Subject: * 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 --- win32/dir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32/dir.h') 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; -- cgit v1.2.3