mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-17 20:31:57 -05:00
Fixed buffer overrun.
This commit is contained in:
parent
daab00e816
commit
da5d390262
2 changed files with 2 additions and 2 deletions
|
@ -2253,7 +2253,7 @@ namespace bgfx
|
|||
|
||||
void Context::rendererUpdateViewName(uint8_t _id, const char* _name)
|
||||
{
|
||||
mbstowcs(&s_viewNameW[_id][0], _name, 256*sizeof(wchar_t) );
|
||||
mbstowcs(&s_viewNameW[_id][0], _name, countof(s_viewNameW[0]) );
|
||||
}
|
||||
|
||||
void Context::rendererUpdateUniform(uint16_t _loc, const void* _data, uint32_t _size)
|
||||
|
|
|
@ -2150,7 +2150,7 @@ namespace bgfx
|
|||
|
||||
void Context::rendererUpdateViewName(uint8_t _id, const char* _name)
|
||||
{
|
||||
mbstowcs(&s_viewNameW[_id][0], _name, 256*sizeof(wchar_t) );
|
||||
mbstowcs(&s_viewNameW[_id][0], _name, countof(s_viewNameW[0]) );
|
||||
}
|
||||
|
||||
void Context::rendererUpdateUniform(uint16_t _loc, const void* _data, uint32_t _size)
|
||||
|
|
Loading…
Reference in a new issue