A note on the hilbertfunction of a one-dimensional Cohen-Macaulay ring