Skip to content

Commit 1b897a2

Browse files
committed
String must be null-terminated.
1 parent 54ccc73 commit 1b897a2

File tree

1 file changed

+2
-0
lines changed
  • src/Layers/xrRenderPC_R2

1 file changed

+2
-0
lines changed

src/Layers/xrRenderPC_R2/r2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,8 @@ HRESULT CRender::shader_compile(LPCSTR name, DWORD const* pSrcData, UINT SrcData
10981098
++len;
10991099
}
11001100

1101+
sh_name[len] = '\0';
1102+
11011103
// finish
11021104
defines[def_it].Name = 0;
11031105
defines[def_it].Definition = 0;

0 commit comments

Comments
 (0)