diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-08 16:46:21 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-08 16:46:21 +0000 |
commit | 396c12ee73193f4ac3665ecac2f634fc0b046697 (patch) | |
tree | 16edb33b60f95f6bda93bc84b3f2eb81e316ba1d /nGenEx/SoundD3D.cpp | |
parent | 50971e84e295033941fac5291b08e593541fe945 (diff) | |
download | starshatter-396c12ee73193f4ac3665ecac2f634fc0b046697.zip starshatter-396c12ee73193f4ac3665ecac2f634fc0b046697.tar.gz starshatter-396c12ee73193f4ac3665ecac2f634fc0b046697.tar.bz2 |
Fixes for unsafe string handling, variable scoping errors.
Diffstat (limited to 'nGenEx/SoundD3D.cpp')
-rw-r--r-- | nGenEx/SoundD3D.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nGenEx/SoundD3D.cpp b/nGenEx/SoundD3D.cpp index 212e856..fb4000e 100644 --- a/nGenEx/SoundD3D.cpp +++ b/nGenEx/SoundD3D.cpp @@ -727,14 +727,14 @@ SoundD3D::Localize() HRESULT hr = buffer->SetPan((LONG) pan);
if (!SUCCEEDED(hr)) {
char warn[512];
- sprintf(warn, "Warning could not set pan on buffer to %d", pan);
+ sprintf_s(warn, "Warning could not set pan on buffer to %d", pan);
SoundD3DError(warn, hr);
}
hr = buffer->SetVolume((LONG) vol);
if (!SUCCEEDED(hr)) {
char warn[512];
- sprintf(warn, "Warning: could not set volume on buffer to %d", vol);
+ sprintf_s(warn, "Warning: could not set volume on buffer to %d", vol);
SoundD3DError(warn, hr);
}
@@ -769,7 +769,7 @@ SoundD3D::Localize() hr = buffer->SetFrequency(f_shift);
if (!SUCCEEDED(hr)) {
char warn[512];
- sprintf(warn, "Warning: could not set Doppler frequency on buffer to %d", f_shift);
+ sprintf_s(warn, "Warning: could not set Doppler frequency on buffer to %d", f_shift);
SoundD3DError(warn, hr);
}
}
|