Fix sprintf format warning in example.