diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-30 04:44:42 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-30 04:44:42 +0000 |
commit | 475907ecf0d9923533f61d604dcd0e466ca41200 (patch) | |
tree | 851f73126ef5c29359b0cf7a552bbd2e0e6befd2 /file.c | |
parent | 1049a5df6d9975661bce0cb8a13cf66be907231d (diff) |
merges r31351 and r31352 from trunk into ruby_1_9_2.
--
* include/ruby/win32.h (ftruncate, truncate, ftello, fseeko): non-64
versions on mingw are useless because they use int32_t. fixes #4564
--
* file.c (rb_file_truncate): fix function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3913,7 +3913,7 @@ rb_file_truncate(VALUE obj, VALUE len) rb_sys_fail_path(fptr->pathv); #else /* defined(HAVE_CHSIZE) */ if (chsize(fptr->fd, pos) < 0) - rb_sys_fail(fptr->pathv); + rb_sys_fail_path(fptr->pathv); #endif return INT2FIX(0); } |