Fix an indexing issue recently introduced to curses_getpos.