You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
585 B
25 lines
585 B
10 years ago
|
diff -u -r ../unrar/consio.cpp ./consio.cpp
|
||
|
--- ../unrar/consio.cpp 2013-12-01 09:10:14.000000000 +0100
|
||
|
+++ ./consio.cpp 2014-02-13 00:27:45.000000000 +0100
|
||
|
@@ -144,6 +144,20 @@
|
||
|
|
||
|
|
||
|
#ifndef SILENT
|
||
|
+#ifdef __ANDROID__
|
||
|
+static char* getpass(const char* prompt) {
|
||
|
+ static char chars[128];
|
||
|
+ int len = 0;
|
||
|
+ while (true) {
|
||
|
+ char c = fgetc(stdin);
|
||
|
+ if (c == '\r' || c == '\n' || c == 0) break;
|
||
|
+ chars[len++] = c;
|
||
|
+ if (len == sizeof(chars)-1) break;
|
||
|
+ }
|
||
|
+ chars[len] = 0;
|
||
|
+ return chars;
|
||
|
+}
|
||
|
+#endif
|
||
|
static void GetPasswordText(wchar *Str,uint MaxLength)
|
||
|
{
|
||
|
if (MaxLength==0)
|