diff --git a/rbtools/commands/patch.py b/rbtools/commands/patch.py
index 1127f038b54a1eaa84700dd3afb7998a9b88571e..ccfeec9b7905c8c6c92a0e8d6d93fb5d6e1804d4 100644
--- a/rbtools/commands/patch.py
+++ b/rbtools/commands/patch.py
@@ -732,7 +732,7 @@ class Patch(Command):
         # Start applying all the patches.
         for patch_data in patches:
             patch_num = patch_data['patch_num']
-            tmp_patch_file = make_tempfile(patch_data['diff'])
+            tmp_patch_file = make_tempfile(content=patch_data['diff'])
 
             success = self.apply_patch(
                 diff_file_path=tmp_patch_file,
