Fix sprintf calls.