s3:client: only limit the buffer by the given length 'n'