Skip to content

Commit

Permalink
Merge pull request #191 from MineRobber9000/fix190
Browse files Browse the repository at this point in the history
Prevent accidental discard of line content during file.readLines
  • Loading branch information
JoeStrout authored Dec 4, 2024
2 parents d1f2fcb + fc2e62b commit ff88b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MiniScript-cpp/src/ShellIntrinsics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ static IntrinsicResult intrinsic_readLines(Context *context, IntrinsicResult par
}
}
if (lineStart < bytesRead) {
partialLine = String(&buf[lineStart], bytesRead - lineStart);
partialLine += String(&buf[lineStart], bytesRead - lineStart);
}
}
if (!partialLine.empty()) list.Add(partialLine);
Expand Down

0 comments on commit ff88b65

Please sign in to comment.