* Correct write at

This commit is contained in:
Michael Van Canneyt 2024-08-19 15:09:20 +02:00
parent c1a482a13e
commit 767c226db7

View File

@ -296,7 +296,7 @@ begin
try
DS:=TJSDataView.New(Data.buffer);
if atPos<>-1 then
Written:=ZenFS.writeSync(fd,DS,atPos)
Written:=ZenFS.writeSync(fd,DS,0,Data.byteLength,atPos)
else
Written:=ZenFS.writeSync(fd,DS,0,Data.byteLength);
Result:=resOK;