Return string directly
Return a string from the function instead of copying it
Use strncpy with the lengths as a form of self-documentation