File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public static bool InputText(
128128 }
129129 Util . GetUtf8 ( input , utf8InputBytes , inputBufSize ) ;
130130 uint clearBytesCount = ( uint ) ( inputBufSize - utf8InputByteCount ) ;
131- Unsafe . InitBlockUnaligned ( utf8InputBytes + utf8InputByteCount + 1 , 0 , clearBytesCount ) ;
131+ Unsafe . InitBlockUnaligned ( utf8InputBytes + utf8InputByteCount , 0 , clearBytesCount ) ;
132132 Unsafe . CopyBlock ( originalUtf8InputBytes , utf8InputBytes , ( uint ) inputBufSize ) ;
133133
134134 byte result = ImGuiNative . igInputText (
@@ -218,7 +218,7 @@ public static bool InputTextMultiline(
218218 }
219219 Util . GetUtf8 ( input , utf8InputBytes , inputBufSize ) ;
220220 uint clearBytesCount = ( uint ) ( inputBufSize - utf8InputByteCount ) ;
221- Unsafe . InitBlockUnaligned ( utf8InputBytes + utf8InputByteCount + 1 , 0 , clearBytesCount ) ;
221+ Unsafe . InitBlockUnaligned ( utf8InputBytes + utf8InputByteCount , 0 , clearBytesCount ) ;
222222 Unsafe . CopyBlock ( originalUtf8InputBytes , utf8InputBytes , ( uint ) inputBufSize ) ;
223223
224224 byte result = ImGuiNative . igInputTextMultiline (
You can’t perform that action at this time.
0 commit comments