Of course, it's almost strlcpy. However, strlcpy is not part of the standard, on some systems it's present, on some systems it's not. Anyway, the string somehow should be terminated, it does not matter (for me) if it's strncpy+manual 0, or strlcpy, or snprintf, or memcpy +strlen or something else.