distorted-utils: Currently disabled.
[termux-packages] / packages / w3m / ftp.c.patch
CommitLineData
ecb2ad16
FF
1diff -u -r ../w3m-0.5.3/ftp.c ./ftp.c
2--- ../w3m-0.5.3/ftp.c 2011-01-04 04:22:21.000000000 -0500
3+++ ./ftp.c 2015-11-19 17:38:19.404593027 -0500
4@@ -342,6 +342,21 @@
5 ftp_close(&current_ftp);
6 }
7
8+#ifdef __ANDROID__
9+static char* getpass(const char* prompt) {
10+ static char chars[128];
11+ int len = 0;
12+ while (1) {
13+ char c = fgetc(stdin);
14+ if (c == '\r' || c == '\n' || c == 0) break;
15+ chars[len++] = c;
16+ if (len == sizeof(chars)-1) break;
17+ }
18+ chars[len] = 0;
19+ return chars;
20+}
21+#endif
22+
23 InputStream
24 openFTPStream(ParsedURL *pu, URLFile *uf)
25 {