mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-03 20:35:33 +00:00
Fix buffer overflow.
This commit is contained in:
parent
b253a810e0
commit
e95ef4e98a
|
@ -68,11 +68,7 @@ namespace SDL2
|
|||
{
|
||||
if (str == null)
|
||||
{
|
||||
if (bufferSize > 0)
|
||||
{
|
||||
buffer[0] = 0;
|
||||
}
|
||||
return buffer;
|
||||
return (byte*) 0;
|
||||
}
|
||||
fixed (char* strPtr = str)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue