Keep newterm() type string around long enough.
Keep newterm() type string around long enough.

This fixes #41 where the pointer passed to newterm()
was pointing to potentially already freed memory.

ihalila/pancurses