1
0
Fork 0
mirror of https://github.com/Ryujinx/SDL2-CS.git synced 2025-03-08 10:10:40 +00:00

Fix buffer overflow.

This commit is contained in:
Chad Yates 2020-06-22 20:06:40 -07:00 committed by Ethan Lee
parent b253a810e0
commit e95ef4e98a

View file

@ -68,11 +68,7 @@ namespace SDL2
{
if (str == null)
{
if (bufferSize > 0)
{
buffer[0] = 0;
}
return buffer;
return (byte*) 0;
}
fixed (char* strPtr = str)
{