50f6d032 |
1 | --- ../cache/screen-4.4.0/attacher.c 2016-06-19 19:41:03.000000000 +0000 |
2 | +++ ./attacher.c 2016-12-20 06:59:46.351839178 +0000 |
3 | @@ -71,7 +71,19 @@ |
4 | static int multipipe[2]; |
5 | # endif |
6 | #endif |
7 | +#ifdef __ANDROID__ |
8 | +#define PWDLEN 128 /* used by Linux */ |
9 | |
10 | +char *getpass (const char *prompt) |
11 | +{ |
12 | + char *s; |
13 | + static char pwd[PWDLEN]; |
14 | + fputs (prompt,stdout); |
15 | + fgets (pwd,PWDLEN-1,stdin); |
16 | + if (s = strchr (pwd,'\n')) *s = '\0'; |
17 | + return pwd; |
18 | +} |
19 | +#endif |
20 | |
21 | static int ContinuePlease; |
22 | |
23 | @@ -921,7 +933,6 @@ |
24 | #endif |
25 | |
26 | debug("screen_builtin_lck looking in gcos field\n"); |
27 | - strncpy(fullname, ppp->pw_gecos, sizeof(fullname) - 9); |
28 | fullname[sizeof(fullname) - 9] = 0; |
29 | |
30 | if ((cp1 = index(fullname, ',')) != NULL) |