Index: webrtc/modules/audio_device/dummy/file_audio_device_factory.cc |
diff --git a/webrtc/modules/audio_device/dummy/file_audio_device_factory.cc b/webrtc/modules/audio_device/dummy/file_audio_device_factory.cc |
index bce6be46339581df25674ff1be5fdd5b1a405f4c..9aeba205d94aead04c0df28225a31be9ee35f3f5 100644 |
--- a/webrtc/modules/audio_device/dummy/file_audio_device_factory.cc |
+++ b/webrtc/modules/audio_device/dummy/file_audio_device_factory.cc |
@@ -39,8 +39,8 @@ FileAudioDevice* FileAudioDeviceFactory::CreateFileAudioDevice( |
void FileAudioDeviceFactory::SetFilenamesToUse( |
const char* inputAudioFilename, const char* outputAudioFilename) { |
#ifdef WEBRTC_DUMMY_FILE_DEVICES |
- RTC_DCHECK(strlen(inputAudioFilename) < MAX_FILENAME_LEN && |
- strlen(outputAudioFilename) < MAX_FILENAME_LEN); |
+ RTC_DCHECK_LT(strlen(inputAudioFilename), MAX_FILENAME_LEN); |
+ RTC_DCHECK_LT(strlen(outputAudioFilename), MAX_FILENAME_LEN); |
// Copy the strings since we don't know the lifetime of the input pointers. |
strncpy(_inputAudioFilename, inputAudioFilename, MAX_FILENAME_LEN); |