From 8d7166f3d25a3553e3ff35db053529e81990140d Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Mon, 16 Mar 2015 08:36:29 +0100 Subject: [PATCH] MRI: Fix Font.name returning nil I wish I had tests.. --- binding-mri/font-binding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding-mri/font-binding.cpp b/binding-mri/font-binding.cpp index ec6ae14..2a8856a 100644 --- a/binding-mri/font-binding.cpp +++ b/binding-mri/font-binding.cpp @@ -152,7 +152,7 @@ RB_METHOD(FontSetName) Font *f = getPrivateData(self); char result[256]; - fontSetNameHelper(self, argc, argv, "default_name", + fontSetNameHelper(self, argc, argv, "name", result, sizeof(result)); f->setName(result);