From f7b839fbcd984ab9f836b5382c54db9fcc5f7859 Mon Sep 17 00:00:00 2001
From: Lars Kanis <lars@greiz-reinsdorf.de>
Date: Sat, 14 Feb 2015 11:33:49 +0100
Subject: [PATCH] Make sure the image string is modifiable.

---
 ext/fox16_c/FXRuby.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ext/fox16_c/FXRuby.cpp b/ext/fox16_c/FXRuby.cpp
index 11f2ab1..61f1715 100644
--- a/ext/fox16_c/FXRuby.cpp
+++ b/ext/fox16_c/FXRuby.cpp
@@ -481,6 +481,7 @@ FXColor *FXRbConvertToFXColors(VALUE string_or_ary, FXuint *opts){
         memcpy(pix, RSTRING_PTR(string_or_ary), RSTRING_LEN(string_or_ary));
       }
     }else{
+      rb_str_modify(string_or_ary);
       pix = (FXColor*)(RSTRING_PTR(string_or_ary));
     }
   }
-- 
GitLab