[vlc-devel] [PATCH] waveout: use _snwprintf
Edward Wang
edward.c.wang at compdigitec.com
Thu Mar 29 23:46:37 CEST 2012
Close #6484
---
modules/audio_output/waveout.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/audio_output/waveout.c b/modules/audio_output/waveout.c
index 30a93eb..357b613 100644
--- a/modules/audio_output/waveout.c
+++ b/modules/audio_output/waveout.c
@@ -1066,7 +1066,7 @@ static int ReloadWaveoutDevices( vlc_object_t *p_this, char const *psz_name,
!= MMSYSERR_NOERROR)
continue;
- swprintf(dev_name, MAXPNAMELEN + 32, device_name_fmt,
+ _snwprintf(dev_name, MAXPNAMELEN + 32, device_name_fmt,
caps.szPname, caps.wMid, caps.wPid);
p_item->ppsz_list[j] = FromWide( dev_name );
p_item->ppsz_list_text[j] = FromWide( dev_name );
@@ -1104,7 +1104,7 @@ static uint32_t findDeviceID(char *psz_device_name)
!= MMSYSERR_NOERROR )
continue;
- swprintf( dev_name, MAXPNAMELEN + 32, device_name_fmt,
+ _snwprintf( dev_name, MAXPNAMELEN + 32, device_name_fmt,
caps.szPname, caps.wMid, caps.wPid );
char *u8 = FromWide(dev_name);
if( !stricmp(u8, psz_device_name) )
--
1.7.5.4
More information about the vlc-devel
mailing list