Changeset 3279


Ignore:
Timestamp:
Feb 4, 2013, 2:04:57 PM (11 years ago)
Author:
gah
Message:

fixes for 1.9 ruby build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/ruby/Ruby_Rappture.cc

    r3278 r3279  
    217217   if (T_STRING == TYPE(value))
    218218   {
    219       long int nbytes;
    220       char *bytes = rb_str2cstr(value, &nbytes);
    221 
    222       lib->putData(GetStdString(path), bytes, nbytes, NUM2INT(append));
     219       VALUE strValue;
     220
     221       strValue = StringValue(value);
     222       lib->putData(GetStdString(path),
     223                    RSTRING(strValue)->ptr, RSTRING(strValue)->len,
     224                    NUM2INT(append));
    223225   }
    224226#ifdef RAISE_EXCEPTIONS
Note: See TracChangeset for help on using the changeset viewer.