diff --git a/lib/fakefs/file.rb b/lib/fakefs/file.rb
index <HASH>..<HASH> 100644
--- a/lib/fakefs/file.rb
+++ b/lib/fakefs/file.rb
@@ -497,8 +497,8 @@ module FakeFS
       true
     end
 
-    def write(str)
-      val = super(str)
+    def write(*args)
+      val = super(*args)
       @file.mtime = Time.now
       val
     end
FakeFS::File: fix interface of #write

It can take multiple arguments. This caused a warning at least since
ruby <I>