Patch and test for scanf %i.