Update buffer size types to avoid type warnings.