drivers/tty/n_tty.c: fix CVE-2014-0196

Signed-off-by: Paul Reioux <reioux@gmail.com>