#BUGFIX by exept
authorClaus Gittinger <cg@exept.de>
Wed, 26 Feb 2020 01:24:19 +0100
changeset 25300 3acabb810952
parent 25299 391acf8707e3
child 25301 e2bd80b60f30
#BUGFIX by exept class: FileStream changed: #copy:into:bufferSize: return value confusion
FileStream.st
--- a/FileStream.st	Wed Feb 26 01:21:24 2020 +0100
+++ b/FileStream.st	Wed Feb 26 01:24:19 2020 +0100
@@ -923,7 +923,7 @@
 
     outStream isExternalStream ifTrue:[
         "sendfile() in Linux does not support any combination of file/pipe/socket fds.
-         #copyFromFd:toFd:startIndex:count: is curently not available in windows."
+         #copyFromFd:toFd:startIndex:count: is currently not available in windows."
 
         pos := self position.
         numberOfBytesOrNil isNil ifTrue:[
@@ -938,9 +938,7 @@
                         count:n.
         nWritten > 0 ifTrue:[
             self position:pos+nWritten.
-        ].
-        nWritten = n ifTrue:[
-            ^ self
+            ^ n
         ].
     ].