Backport change from 1.2.0: src/mainfrm.cc: Fix potential reading off end of string - fix from Stuart Bennett.
git-svn-id: file:///home/survex-svn/survex/branches/1.0@3691 4b37db11-9a0c-4f06-9ece-9ab7cdaee568