1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/tmpdir.rb: setup buffer with nul characters instead of spaces.

fixed [ruby-dev:36493]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2008-09-24 05:40:34 +00:00
parent 5ae9301f2b
commit 76015fc14a
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Sep 24 14:40:21 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/tmpdir.rb: setup buffer with nul characters instead of spaces.
fixed [ruby-dev:36493]
Wed Sep 24 14:11:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):

View file

@ -14,7 +14,7 @@ class Dir
require 'Win32API'
CSIDL_LOCAL_APPDATA = 0x001c
max_pathlen = 260
windir = ' '*(max_pathlen+1)
windir = "\0"*(max_pathlen+1)
begin
getdir = Win32API.new('shell32', 'SHGetFolderPath', 'LLLLP', 'L')
raise RuntimeError if getdir.call(0, CSIDL_LOCAL_APPDATA, 0, 0, windir) != 0