Browse Source

Merge pull request #49 from ProPuke/fix-TPipeStream-ReadLine-segfaults

fixed: TPipeStream::ReadLine would occasionally segfault
Brucey 3 years ago
parent
commit
0e67bc44b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      freeprocess.mod/freeprocess.bmx

+ 1 - 1
freeprocess.mod/freeprocess.bmx

@@ -100,7 +100,7 @@ Type TPipeStream Extends TStream
 			r=Read(Varptr readbuffer[bufferpos],n)
 			bufferpos:+r
 		EndIf
-		For n=0 To bufferpos
+		For n=0 Until bufferpos
 			If readbuffer[n]=10
 				p1=n
 				If (n>0)