(ttyname): Terminate the string.