Properly initialize filesize during input buffer initialization.