fix overread (consuming an extra byte) scanning NAN

bug detected by glib test suite
1 file changed