Use os_snprintf instead of snprintf