mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Fixed getenv.
This commit is contained in:
@@ -242,6 +242,11 @@ namespace bx
|
||||
len = (uint32_t)strlen(ptr);
|
||||
}
|
||||
bool result = len != 0 && len < *_inOutSize;
|
||||
if (len < *_inOutSize)
|
||||
{
|
||||
strcpy(_out, ptr);
|
||||
}
|
||||
|
||||
*_inOutSize = len;
|
||||
return result;
|
||||
#endif // BX_PLATFORM_
|
||||
|
||||
Reference in New Issue
Block a user