summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
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 0feb226d22c..8063850ab4f 100644
--- a/file.c
+++ b/file.c
@@ -707,7 +707,7 @@ file_s_ftype(obj, fname)
#if defined(MSDOS) || defined(NT)
if (rb_stat(fname, &st) < 0)
- rb_sys_fail(RSTRIN(fname)->ptr);
+ rb_sys_fail(RSTRING(fname)->ptr);
#else
Check_SafeStr(fname);
if (lstat(RSTRING(fname)->ptr, &st) == -1) {