summaryrefslogtreecommitdiff
path: root/win32/dir.h
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-17 23:42:00 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-17 23:42:00 +0000
commitf3cde2b5fbd1c936c297a248c4d277339db687ff (patch)
treeadc0b03463ff11b0531fcdc30d437bd672020706 /win32/dir.h
parent966a25465aab5c2972e6c453f631a15fc2223256 (diff)
* win32/dir.h, win32/win32.c (rb_w32_opendir, rb_w32_readdir,
rb_w32_closedir): get rid of possible buffer-overflows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/dir.h')
-rw-r--r--win32/dir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/dir.h b/win32/dir.h
index f970745..a0c7fa8 100644
--- a/win32/dir.h
+++ b/win32/dir.h
@@ -12,7 +12,7 @@ struct direct
{
long d_namlen;
ino_t d_ino;
- char d_name[256];
+ char *d_name;
char d_isdir; /* directory */
char d_isrep; /* reparse point */
};