htpasswd: report the right limit when get_password() overflows.
@@ -168,7 +168,7 @@ int get_password(struct passwd_ctx *ctx)
err_too_long:
ctx->errstr = apr_psprintf(ctx->pool,
"password too long (>%" APR_SIZE_T_FMT ")",
- ctx->out_len - 1);
+ sizeof(buf) - 1);
return ERR_OVERFLOW;
}
