Update terminal.c

Moved strlen