Neko native bytes resize fix
This commit is contained in:
@@ -195,7 +195,7 @@ namespace lime {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
value s = alloc_raw_string (size);
|
value s = alloc_raw_string (size);
|
||||||
memcpy ((char *)val_string (s), val_string (val_field (_value, id_b)), size);
|
memcpy ((char *)val_string (s), val_string (val_field (_value, id_b)), _length);
|
||||||
alloc_field (_value, id_b, s);
|
alloc_field (_value, id_b, s);
|
||||||
_data = (unsigned char*)val_string (s);
|
_data = (unsigned char*)val_string (s);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user