diff --git a/packages/newsboat/build.sh b/packages/newsboat/build.sh index 4cc49699e..c36a954fc 100644 --- a/packages/newsboat/build.sh +++ b/packages/newsboat/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://newsboat.org/ TERMUX_PKG_DESCRIPTION="RSS/Atom feed reader for the text console" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_VERSION=2.17 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://newsboat.org/releases/${TERMUX_PKG_VERSION}/newsboat-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=88c3f73b676f5fc52a0c935922eb520b463b388c7ef2325e67d847bee41efa79 TERMUX_PKG_DEPENDS="libc++, libiconv, libandroid-support, libandroid-glob, json-c, libsqlite, libcurl, libxml2, stfl, ncurses, openssl" diff --git a/packages/newsboat/mbc-buffer-length-fix.patch b/packages/newsboat/mbc-buffer-length-fix.patch new file mode 100644 index 000000000..fa63eec57 --- /dev/null +++ b/packages/newsboat/mbc-buffer-length-fix.patch @@ -0,0 +1,12 @@ +diff -uNr newsboat-2.17/src/tagsouppullparser.cpp newsboat-2.17.mod/src/tagsouppullparser.cpp +--- newsboat-2.17/src/tagsouppullparser.cpp 2019-09-22 17:19:19.000000000 +0300 ++++ newsboat-2.17.mod/src/tagsouppullparser.cpp 2019-09-24 21:48:19.762987918 +0300 +@@ -515,7 +515,7 @@ + } else { + for (unsigned int i = 0; entity_table[i].entity; ++i) { + if (s == entity_table[i].entity) { +- char mbc[MB_CUR_MAX]; ++ char mbc[16]; + int pos = wctomb(mbc, entity_table[i].value); + if (pos == -1) { + return std::string();