fix a typo: sprrintf => spprintf