fix buggy limiter handling in shgetc

this is needed for upcoming new scanf
1 file changed