diff options
Diffstat (limited to 'linden/indra/llaudio/audioengine.cpp')
-rw-r--r-- | linden/indra/llaudio/audioengine.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/llaudio/audioengine.cpp b/linden/indra/llaudio/audioengine.cpp index af43b42..5dd5b28 100644 --- a/linden/indra/llaudio/audioengine.cpp +++ b/linden/indra/llaudio/audioengine.cpp | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /** |
2 | * @file audioengine.cpp | 2 | * @file audioengine.cpp |
3 | * @brief implementation of LLAudioEngine class abstracting the Open | 3 | * @brief implementation of LLAudioEngine class abstracting the Open |
4 | * AL audio support | 4 | * AL audio support |
@@ -916,7 +916,7 @@ void LLAudioEngine::cleanupAudioSource(LLAudioSource *asp) | |||
916 | 916 | ||
917 | BOOL LLAudioEngine::hasDecodedFile(const LLUUID &uuid) | 917 | BOOL LLAudioEngine::hasDecodedFile(const LLUUID &uuid) |
918 | { | 918 | { |
919 | char uuid_str[UUID_STR_LENGTH]; /*Flawfinder: ignore*/ | 919 | std::string uuid_str; |
920 | uuid.toString(uuid_str); | 920 | uuid.toString(uuid_str); |
921 | 921 | ||
922 | std::string wav_path; | 922 | std::string wav_path; |
@@ -1653,10 +1653,10 @@ BOOL LLAudioData::load() | |||
1653 | return FALSE; | 1653 | return FALSE; |
1654 | } | 1654 | } |
1655 | 1655 | ||
1656 | char uuid_str[UUID_STR_LENGTH]; /*Flawfinder: ignore*/ | 1656 | std::string uuid_str; |
1657 | char wav_path[MAX_PATH]; /*Flawfinder: ignore*/ | 1657 | std::string wav_path; |
1658 | mID.toString(uuid_str); | 1658 | mID.toString(uuid_str); |
1659 | snprintf(wav_path, MAX_PATH, "%s.dsf",gDirUtilp->getExpandedFilename(LL_PATH_CACHE,uuid_str).c_str()); /* Flawfinder: ignore */ | 1659 | wav_path= gDirUtilp->getExpandedFilename(LL_PATH_CACHE,uuid_str) + ".dsf"; |
1660 | 1660 | ||
1661 | if (!mBufferp->loadWAV(wav_path)) | 1661 | if (!mBufferp->loadWAV(wav_path)) |
1662 | { | 1662 | { |