Effect of a magnetic field on the correlation length in a one-dimensional antiferromagnet