diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-17 23:42:00 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-17 23:42:00 +0000 |
commit | f3cde2b5fbd1c936c297a248c4d277339db687ff (patch) | |
tree | adc0b03463ff11b0531fcdc30d437bd672020706 /win32/dir.h | |
parent | 966a25465aab5c2972e6c453f631a15fc2223256 (diff) | |
download | ruby-f3cde2b5fbd1c936c297a248c4d277339db687ff.tar.gz |
* 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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/dir.h b/win32/dir.h index f970745fdf..a0c7fa86c6 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 */ }; |