I suggest the following:
```
char t_buffer[MAXHOSTNAMELEN];
gethostname(t_buffer, MAXHOSTNAMELEN);
/* UNCHECKED */ MCStringFormat(r_address, "%s:%s", t_buffer, MCcmd))