summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-30 04:44:42 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-30 04:44:42 +0000
commit475907ecf0d9923533f61d604dcd0e466ca41200 (patch)
tree851f73126ef5c29359b0cf7a552bbd2e0e6befd2 /file.c
parent1049a5df6d9975661bce0cb8a13cf66be907231d (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index adc49ef017..b4675ef6a4 100644
--- a/file.c
+++ b/file.c
@@ -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);
}