termux-packages/packages/recutils/vasnprintf.patch
Rowan Wookey 2e39d77488 Added recutils package.
* Patched getpass by wrapping in if statement thanks to https://github.com/termux/termux-packages/blob/master/packages/rsync/rsync-3.1.3_lib_getpass.c.patch
* Patched %n printf failing on android 10 thanks to 759ad3f217
2020-02-15 18:57:46 +00:00

12 lines
636 B
Diff

--- recutils-1.8/lib/vasnprintf.c 2019-01-03 09:19:30.000000000 +0000
+++ ../recutils-1.8-patched/lib/vasnprintf.c 2020-02-15 18:35:52.025960001 +0000
@@ -4874,7 +4874,7 @@
# 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';