vlc | branch: master | Edward Wang <[email protected]> | Thu Mar 29 17:46:37 2012 -0400| [f5f890f870474398687dc8d9ca16deab09e205b7] | committer: Rafaël Carré
waveout: use _snwprintf Close #6484 Signed-off-by: Rafaël Carré <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f5f890f870474398687dc8d9ca16deab09e205b7 --- 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) ) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
