mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
@@ -539,7 +539,7 @@ namespace bgfx
|
||||
uint32_t len = uint32_t(str-_ptr);
|
||||
|
||||
len = bx::uint32_min(BX_COUNTOF(tmp), len);
|
||||
strncpy(tmp, _ptr, len);
|
||||
bx::strlncpy(tmp, sizeof(tmp), _ptr, len);
|
||||
tmp[len] = '\0';
|
||||
|
||||
uint8_t attr = uint8_t(atoi(tmp) );
|
||||
|
||||
Reference in New Issue
Block a user