Commit | Line | Data |
---|---|---|
ecb2ad16 FF |
1 | diff -u -r ../w3m-0.5.3/file.c ./file.c |
2 | --- ../w3m-0.5.3/file.c 2011-01-04 04:22:21.000000000 -0500 | |
3 | +++ ./file.c 2015-11-19 17:37:37.536882299 -0500 | |
4 | @@ -1513,6 +1513,21 @@ | |
5 | return hauth->scheme ? hauth : NULL; | |
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 | static void | |
24 | getAuthCookie(struct http_auth *hauth, char *auth_header, | |
25 | TextList *extra_header, ParsedURL *pu, HRequest *hr, |