소스 검색

Fixed DataBuffer.PeekString using wrong length.

Mark Sibly 8 년 전
부모
커밋
39435d3ff0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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