Explorar o código

Fixed SaveString appending NULL at last!

Mark Sibly %!s(int64=9) %!d(string=hai) anos
pai
achega
cb60ac7f45
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 )