diff -uNr lftp-4.8.4/lib/vasnprintf.c lftp-4.8.4.mod/lib/vasnprintf.c
--- lftp-4.8.4/lib/vasnprintf.c	2018-07-31 14:04:57.000000000 +0300
+++ lftp-4.8.4.mod/lib/vasnprintf.c	2019-10-27 20:05:33.109405874 +0200
@@ -4872,7 +4872,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';