recode: add patch to avoid %n in formatted msgs

This commit is contained in:
Henrik Grimler 2022-01-06 09:01:24 +01:00
parent f8c8edc537
commit 3d88c20ea2
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
2 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Charset converter tool and library"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="Marlin Sööse <marlin.soose@laro.se>"
TERMUX_PKG_VERSION=3.7.9
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/rrthomas/recode/releases/download/v${TERMUX_PKG_VERSION}/recode-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=e4320a6b0f5cd837cdb454fb5854018ddfa970911608e1f01cc2c65f633672c4
TERMUX_PKG_AUTO_UPDATE=true

View File

@ -0,0 +1,12 @@
--- ./lib/vasnprintf.c~ 2019-12-12 20:53:07.000000000 +0100
+++ ./lib/vasnprintf.c 2022-01-06 08:58:41.897056563 +0100
@@ -4872,7 +4872,8 @@
# if ! (((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) \
&& !defined __UCLIBC__) \
|| (defined __APPLE__ && defined __MACH__) \
- || (defined _WIN32 && ! defined __CYGWIN__))
+ || (defined _WIN32 && ! defined __CYGWIN__) \
+ || defined __ANDROID__)
fbp[1] = '%';
fbp[2] = 'n';
fbp[3] = '\0';