Explorar o código

Fixed DataBuffer.PeekString using wrong length.

Mark Sibly %!s(int64=8) %!d(string=hai) anos
pai
achega
39435d3ff0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/std/memory/databuffer.monkey2

+ 1 - 1
modules/std/memory/databuffer.monkey2

@@ -430,7 +430,7 @@ Class DataBuffer Extends std.resource.Resource
 	Method PokeString( offset:Int,value:String )
 		DebugAssert( offset>=0 And offset<=_length )
 		
-		Local count:=value.Length
+		Local count:=value.CStringLength
 		If offset+count>_length count=_length-offset
 		value.ToCString( _data+offset,count )
 	End