Release 0.16.5.

This commit is contained in:
rakshasa
2025-12-02 17:51:26 +01:00
parent a526ba58e9
commit 60cfcd37c4
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -156,9 +156,10 @@ parse_command_file(const std::string& path) {
if (file.gcount() == 0)
throw torrent::internal_error("parse_command_file(...) file.gcount() == 0.");
int lineLength = file.gcount() - 1;
// In case we are at the end of the file and the last character is
// not a line feed, we'll just increase the read character count so
// not a line feed, we'll just increase the read character count so
// that the last would also be included in option line.
if (file.eof() && file.get() != '\n')
lineLength++;