Browse Source

Fixed SaveString appending NULL at last!

Mark Sibly 9 năm trước cách đây
mục cha
commit
cb60ac7f45
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/std/misc/stringio.monkey2

+ 1 - 1
modules/std/misc/stringio.monkey2

@@ -37,7 +37,7 @@ End
 #end
 Function SaveString:Bool( str:String,path:String )
 
-	Local data:=New DataBuffer( str.Utf8Length+1 )
+	Local data:=New DataBuffer( str.Utf8Length )
 
 	str.ToUtf8String( data.Data,data.Length )