lib/sassc/native.rb in sassc-1.0.0 vs lib/sassc/native.rb in sassc-1.1.0
- old
+ new
@@ -47,10 +47,10 @@
ptr.null? ? [] : ptr.get_array_of_string(0).compact
end
def self.native_string(string)
string += "\0"
- data = Native::LibC.malloc(string.size)
+ data = Native::LibC.malloc(string.bytesize)
data.write_string(string)
data
end
require_relative "native/native_context_api"