[minor fix] Build - warnings - swprintf has been changed to conform with the ISO C standard

This commit is contained in:
janekptacijarabaci
2017-08-05 20:53:13 +02:00
parent 60739c4c6f
commit c19eb8f7cc
+1 -1
View File
@@ -849,7 +849,7 @@ FileSystemDataSource::GetVolumeList(nsISimpleEnumerator** aResult)
for (volNum = 0; volNum < 26; volNum++)
{
swprintf( drive, L"%c:\\", volNum + (char16_t)'A');
swprintf_s(drive, 32, L"%c:\\", volNum + (char16_t)'A');
driveType = GetDriveTypeW(drive);
if (driveType != DRIVE_UNKNOWN && driveType != DRIVE_NO_ROOT_DIR)