Check return code of getChar(), abort reading on error.

Bug #104502
1 file changed