diff options
-rw-r--r-- | src/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c index b75a9ea784..d8ef2e05a7 100644 --- a/src/common.c +++ b/src/common.c @@ -1012,7 +1012,7 @@ pin_callback(void *user, int attempt, const char *token_url, if (cache > 0 && cached_url != NULL) { if (token_url != NULL && strcmp(cached_url, token_url) == 0) { - if (strlen(pin) >= sizeof(cached_pin)) { + if (strlen(cached_pin) >= pin_max) { fprintf(stderr, "Too long PIN given\n"); exit(1); } |