diff --git a/configure.ac b/configure.ac index bbfa74fc..39c52034 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ m4_pattern_allow([PKG_CHECK_EXISTS]) -AC_INIT([rtorrent],[0.16.4],[sundell.software@gmail.com]) +AC_INIT([rtorrent],[0.16.5],[sundell.software@gmail.com]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIRS([scripts]) @@ -48,7 +48,7 @@ if test "x$ax_cv_ncursesw" != xyes && test "x$ax_cv_ncurses" != xyes; then fi PKG_CHECK_MODULES([CPPUNIT], [cppunit],, [no_cppunit="yes"]) -PKG_CHECK_MODULES([DEPENDENCIES], [libtorrent >= 0.16.4]) +PKG_CHECK_MODULES([DEPENDENCIES], [libtorrent >= 0.16.5]) AC_LANG_PUSH(C++) TORRENT_WITH_XMLRPC_C diff --git a/doc/valgrind.commands b/doc/valgrind.commands new file mode 100644 index 00000000..1a9f134c --- /dev/null +++ b/doc/valgrind.commands @@ -0,0 +1 @@ +valgrind --leak-check=full --track-origins=yes --show-reachable=yes --suppressions=/Users/rakshasa/projects/rtorrent/doc/valgrind.suppression --gen-suppressions=all --log-file=valgrind.log /usr/local/bin/rtorrent \ No newline at end of file diff --git a/src/rpc/parse_commands.cc b/src/rpc/parse_commands.cc index e7af7e65..a67523d2 100644 --- a/src/rpc/parse_commands.cc +++ b/src/rpc/parse_commands.cc @@ -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++;