Remove usage of sprintf in modules

sprintf is marked as deprecated with Xcode 14.

Bug: chromium:1331345
Change-Id: I834f392bee96e6b6725d5aee469a243dbc6e272e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/265521
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37162}
This commit is contained in:
Byoungchan Lee
2022-06-09 18:14:00 +09:00
committed by WebRTC LUCI CQ
parent 6b0bedb05a
commit 1abcb1106c
4 changed files with 24 additions and 15 deletions

View File

@ -18,6 +18,7 @@
#include <atomic>
#include <memory>
#include "absl/strings/string_view.h"
#include "modules/audio_device/audio_device_generic.h"
#include "modules/audio_device/mac/audio_mixer_manager_mac.h"
#include "rtc_base/event.h"
@ -179,7 +180,7 @@ class AudioDeviceMac : public AudioDeviceGeneric {
int32_t GetDeviceName(AudioObjectPropertyScope scope,
uint16_t index,
char* name);
rtc::ArrayView<char> name);
int32_t InitDevice(uint16_t userDeviceIndex,
AudioDeviceID& deviceId,