US spice maker McCormick & Co has reported a 19% rise in second-quarter earnings, helped by an adjustment to the purchase price of an acquisition.