diff --git a/README.md b/README.md index 9e1a2d3..4391386 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Highly secure and easy to use GTK+ software for two-factor authentication that s | libsecret | 0.20 | | qrencode | 4.0.2 | -:warning: Please note that the memlock value should be `>= 4 MB`. Any value less than this may cause issues when dealing with tens of tokens (especially when importing from third parties backups). +:warning: Please note that the memlock value should be `>= 64 MB`. Any value less than this may cause issues when dealing with tens of tokens (especially when importing from third parties backups). See this [wiki section](https://github.com/paolostivanin/OTPClient/wiki/Secure-Memory-Limitations) for info on how to check the current value and set, if needed, a higher one. ## Features diff --git a/src/common/common.c b/src/common/common.c index 67332a5..a969590 100644 --- a/src/common/common.c +++ b/src/common/common.c @@ -14,7 +14,7 @@ get_max_file_size_from_memlock (void) struct rlimit r; if (getrlimit (RLIMIT_MEMLOCK, &r) == -1) { // couldn't get memlock limit, so falling back to a default, low value - g_print ("[WARNING] your OS's memlock limit may be too low for you (64000 bytes). Please have a look at %s\n", link); + g_print ("[WARNING] your operating system's memlock limit may be too low for you. Please have a look at %s\n", link); return LOW_MEMLOCK_VALUE; } else { if (r.rlim_cur == -1 || r.rlim_cur > MEMLOCK_VALUE) { @@ -22,7 +22,7 @@ get_max_file_size_from_memlock (void) return MEMLOCK_VALUE; } else { // memlock is less than 'MEMLOCK_VALUE' - g_print ("[WARNING] your OS's memlock limit may be too low for you (current value: %d bytes).\n" + g_print ("[WARNING] your operating system's memlock limit may be too low for you (current value: %d bytes).\n" "This may cause issues when importing third parties databases or dealing with tens of tokens.\n" "For information on how to increase the memlock value, please have a look at %s\n", (gint32)r.rlim_cur, link); return (gint32)r.rlim_cur; @@ -447,4 +447,4 @@ get_kf_ptr (void) g_free (cfg_file_path); g_key_file_free (kf); return NULL; -} \ No newline at end of file +}