fraps: Make the input buffer size checks more strict