Sprintf type error

Fixed a minor error in sprintf to conform to the type expected.