> Btw @tarruda this is probably a good candidate for abstracting into a string_to_cstr() function.

@aktau I think you should return the length to allow truncation check in `strlcpy`s fashion.