Revert "check Ruby strings for embedded null bytes"

This reverts commit 29dfda0011.
It turned out to be a bad idea after all.
This commit is contained in:
Jonas Kulla 2015-04-02 03:15:31 +02:00
parent e72bced0f7
commit 88eca58268
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ DEF_TYPE(Bitmap);
static const char *objAsStringPtr(VALUE obj)
{
VALUE str = rb_obj_as_string(obj);
return StringValueCStr(str);
return RSTRING_PTR(str);
}
void bitmapInitProps(Bitmap *b, VALUE self)