Skip to content

Commit

Permalink
you use VMString to decode strings, box it in BOOTStr
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Aug 11, 2017
1 parent cafe709 commit ba2ef17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/io/asyncsocket.c
Expand Up @@ -654,7 +654,8 @@ static void push_name_and_port(MVMThreadContext *tc, struct sockaddr_storage *na
MVMROOT(tc, arr, {
port_o = MVM_repr_box_int(tc, tc->instance->boot_types.BOOTInt, port);
MVMROOT(tc, port, {
host_o = (MVMObject *)MVM_string_ascii_decode_nt(tc, tc->instance->boot_types.BOOTStr, addrstr);
host_o = (MVMObject *)MVM_repr_box_str(tc, tc->instance->boot_types.BOOTStr,
MVM_string_ascii_decode_nt(tc, tc->instance->VMString, addrstr));
});
});
MVM_repr_push_o(tc, arr, host_o);
Expand Down

0 comments on commit ba2ef17

Please sign in to comment.