From: 諏訪子 Date: Mon, 30 Sep 2024 11:02:56 +0000 (+0900) Subject: ちんこ X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=96ed88f2086af22796a4c709f6f7b6f0f0e2d719;p=sp.git ちんこ --- diff --git a/src/chkpass.c b/src/chkpass.c index 9568575..bc3e1b5 100644 --- a/src/chkpass.c +++ b/src/chkpass.c @@ -42,7 +42,7 @@ void chkLenPass(const char *path, const char *pass, char *lang) { } else if (strlen(pass) >= minimumlen && strlen(pass) < recommendlen) { printf("【W】"); if (strncmp(lang, "en", 2) == 0) { - printf("The password \"%s\" is long enough, but for optimal security," + printf("The password \"%s\" is long enough, but for optimal security, " "%ld characters is recommended.\n", path, recommendlen); } else { @@ -134,7 +134,7 @@ void chkpass(const char *dpath, const char *mode) { for (size_t i = 0; i < chkDispaths.size; i++) { const char *pass = showpass(getElement(&chkDispaths, i)); if (!pass) continue; - if (strstr(pass, "otpauth://totp/")) continue; + if (strncmp(pass, "otpauth://totp/", strlen(pass)) == 0) continue; if (strncmp(mode, "all", 3) == 0) { // 全部を確認する @@ -150,7 +150,6 @@ void chkpass(const char *dpath, const char *mode) { } else if (strncmp(mode, "duplicate", 9) == 0) { // 複数回同じパスワードの確認 chkDupPass(getElement(&chkDispaths, i), pass, lang); - } else { } }