Skip to content

Commit

Permalink
Update Cesium.Runtime/StdIoFunctions.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Friedrich von Never <[email protected]>
  • Loading branch information
kant2002 and ForNeVeR authored Nov 14, 2023
1 parent 8473f28 commit 01247b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cesium.Runtime/StdIoFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public static int FPrintF(void* stream, byte* str, void* varargs)
}

var bytes = encoding.GetBytes(str);
var storage = (byte*)StdLibFunctions.Malloc((nuint)bytes.Length);
var storage = (byte*)StdLibFunctions.Malloc((nuint)bytes.Length + 1);
for (var i = 0; i < bytes.Length;i++)
{
storage[i] = bytes[i];
Expand Down

0 comments on commit 01247b3

Please sign in to comment.