Calculate spare bytes correctly in avalon_get_result.