diff options
author | shfil <filip.gawin@zoho.com> | 2020-05-18 21:08:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 21:08:01 +0200 |
commit | 6bf79120dcd535dc6a63c4d0da858444facb0d8d (patch) | |
tree | e624bf958d6b6b4b4f03f35e1a379b03f55a5787 | |
parent | 37e462b9eb45216620cdcca42f8ca0e170578e7f (diff) |
Fix string assignment (aldlist.cpp)
-rw-r--r-- | src/audio/oal/aldlist.cpp | 2 |
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); |