|
@@ -87,7 +87,7 @@ namespace bgfx
|
|
|
|
|
|
|
|
uint32_t pos = m_pos;
|
|
uint32_t pos = m_pos;
|
|
|
const char* str = &m_str[pos];
|
|
const char* str = &m_str[pos];
|
|
|
- const char* nl = bx::strFindNl(str).getPtr();
|
|
|
|
|
|
|
+ const char* nl = bx::strFindNl(bx::StringView(str, str + (m_size - pos))).getPtr();
|
|
|
pos += (uint32_t)(nl - str);
|
|
pos += (uint32_t)(nl - str);
|
|
|
|
|
|
|
|
const char* eol = &m_str[pos];
|
|
const char* eol = &m_str[pos];
|