diff options
| author | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-23 10:24:05 -0600 |
|---|---|---|
| committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-23 10:24:05 -0600 |
| commit | aad9258100938cf03e74342ae53326a236212f83 (patch) | |
| tree | 560135737473d575a2f415d8490b4981ebff4a3b /src/core/hle/service/nvdrv/nvdrv_interface.cpp | |
| parent | 5a6b3a0125707a5c4bcb488180b92f0be514f8fb (diff) | |
service: properly convert buffers to strings
Diffstat (limited to 'src/core/hle/service/nvdrv/nvdrv_interface.cpp')
| -rw-r--r-- | src/core/hle/service/nvdrv/nvdrv_interface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/nvdrv_interface.cpp b/src/core/hle/service/nvdrv/nvdrv_interface.cpp index 6e48253137..ffe72f2817 100644 --- a/src/core/hle/service/nvdrv/nvdrv_interface.cpp +++ b/src/core/hle/service/nvdrv/nvdrv_interface.cpp @@ -4,6 +4,7 @@ #include "common/logging/log.h" #include "common/scope_exit.h" +#include "common/string_util.h" #include "core/core.h" #include "core/hle/kernel/k_event.h" #include "core/hle/kernel/k_process.h" @@ -29,7 +30,7 @@ void NVDRV::Open(HLERequestContext& ctx) { } const auto& buffer = ctx.ReadBuffer(); - const std::string device_name(buffer.begin(), buffer.end()); + const std::string device_name(Common::StringFromBuffer(buffer)); if (device_name == "/dev/nvhost-prof-gpu") { rb.Push<DeviceFD>(0); |
