ext/etc/etc.c (etc_systmpdir): set default tmplen correctly
Fixup r47826. This fixes the following test failure for me: TestRequire#test_tainted_loadpath [test/ruby/test_require.rb:331]: SecurityError expected but nothing was raised. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a2ae7bccf8
commit
7fcf57412a
@ -1,3 +1,8 @@
|
||||
Wed Oct 8 05:22:42 2014 Eric Wong <e@80x24.org>
|
||||
|
||||
* ext/etc/etc.c (etc_systmpdir): set default tmplen correctly
|
||||
Fixup r47826
|
||||
|
||||
Wed Oct 8 05:16:32 2014 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
|
||||
|
||||
* lib/matrix.rb: Add @- and @+ for Matrix and Vector.
|
||||
|
@ -642,7 +642,7 @@ etc_systmpdir(void)
|
||||
#else
|
||||
const char default_tmp[] = "/tmp";
|
||||
const char *tmpstr = default_tmp;
|
||||
size_t tmplen = 0;
|
||||
size_t tmplen = strlen(default_tmp);
|
||||
# if defined _CS_DARWIN_USER_TEMP_DIR
|
||||
#ifndef MAXPATHLEN
|
||||
#define MAXPATHLEN 1024
|
||||
|
Loading…
x
Reference in New Issue
Block a user