termux-packages/packages/zile/lib-vasnprintf.c.patch

13 lines
745 B
Diff
Raw Normal View History

diff -uNr zile-2.4.14/lib/vasnprintf.c zile-2.4.14.mod/lib/vasnprintf.c
--- zile-2.4.14/lib/vasnprintf.c 2017-10-06 00:00:15.000000000 +0300
+++ zile-2.4.14.mod/lib/vasnprintf.c 2019-11-19 21:04:35.375719251 +0200
@@ -4872,7 +4872,7 @@
# if ! (((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) \
&& !defined __UCLIBC__) \
|| (defined __APPLE__ && defined __MACH__) \
- || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
+ || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined(__ANDROID__))
fbp[1] = '%';
fbp[2] = 'n';
fbp[3] = '\0';