Size of pointer 'P' used instead of size of its data.

CppCheck marks this as a warning that P might be used in sizeof
instead of P->tty_text so we'll use sizeof (P->tty_text) to make
it explicit.