summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshfil <filip.gawin@zoho.com>2020-05-18 21:08:01 +0200
committerGitHub <noreply@github.com>2020-05-18 21:08:01 +0200
commit6bf79120dcd535dc6a63c4d0da858444facb0d8d (patch)
treee624bf958d6b6b4b4f03f35e1a379b03f55a5787 /src
parent37e462b9eb45216620cdcca42f8ca0e170578e7f (diff)
Fix string assignment (aldlist.cpp)
Diffstat (limited to 'src')
-rw-r--r--src/audio/oal/aldlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/oal/aldlist.cpp b/src/audio/oal/aldlist.cpp
index 458b7c80..7401e036 100644
--- a/src/audio/oal/aldlist.cpp
+++ b/src/audio/oal/aldlist.cpp
@@ -73,7 +73,7 @@ ALDeviceList::ALDeviceList()
if ((bNewName) && (actualDeviceName != NULL) && (strlen(actualDeviceName) > 0)) {
memset(&ALDeviceInfo, 0, sizeof(ALDEVICEINFO));
ALDeviceInfo.bSelected = true;
- ALDeviceInfo.strDeviceName.assign(actualDeviceName, strlen(actualDeviceName));
+ ALDeviceInfo.strDeviceName = actualDeviceName;
alcGetIntegerv(device, ALC_MAJOR_VERSION, sizeof(int), &ALDeviceInfo.iMajorVersion);
alcGetIntegerv(device, ALC_MINOR_VERSION, sizeof(int), &ALDeviceInfo.iMinorVersion);