From 1849f6c0b7d467ede5858ac057af16083a380080 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 18 Feb 2025 16:47:06 +0800 Subject: git_hooks_client.c: Don't print wrongly-lengthed cookies --- git_hooks_client/git_hooks_client.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git_hooks_client') diff --git a/git_hooks_client/git_hooks_client.c b/git_hooks_client/git_hooks_client.c index 6471aa8..8024b53 100644 --- a/git_hooks_client/git_hooks_client.c +++ b/git_hooks_client/git_hooks_client.c @@ -27,8 +27,7 @@ int main(int argc, char *argv[]) { return EXIT_FAILURE; } if (strlen(cookie) != 64) { - dprintf(STDERR_FILENO, "environment variable LINDENII_FORGE_HOOKS_COOKIE is not 64 characters long, something has gone wrong\n"); - dprintf(STDERR_FILENO, "%s\n", cookie); + dprintf(STDERR_FILENO, "environment variable LINDENII_FORGE_HOOKS_COOKIE is not 64 characters long\n"); return EXIT_FAILURE; } -- cgit v1.2.3