We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d85ac1 commit 76321a9Copy full SHA for 76321a9
1 file changed
source/adapters/offload/program.cpp
@@ -89,7 +89,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urProgramCreateWithBinary(
89
size_t DevNameLength;
90
OL_RETURN_ON_ERR(olGetDeviceInfoSize(phDevices[0]->OffloadDevice,
91
OL_DEVICE_INFO_NAME, &DevNameLength));
92
- DevName.resize(DevNameLength);
+ DevName.resize(DevNameLength - 1);
93
OL_RETURN_ON_ERR(olGetDeviceInfo(phDevices[0]->OffloadDevice,
94
OL_DEVICE_INFO_NAME, DevNameLength,
95
DevName.data()));
0 commit comments