From e9a0dce170f156846d0e56c7fe9cc1e828a34b44 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 14 Sep 2024 21:50:19 +0200 Subject: [PATCH] Use more reliabe macros to print --version output PACKAGE_STRING, in some cases, might not include the version. Use PACKAGE_NAME PACKAGE_VERSION instead. Thanks to @httpstorm to point this out! --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 8702a4b3..836ac974 100644 --- a/src/main.c +++ b/src/main.c @@ -584,7 +584,7 @@ static void parse_opts(int argc, char **argv) ++verbose; break; case 'V': - printf("%s\n", PACKAGE_STRING); + printf("%s %s\n", PACKAGE_NAME, PACKAGE_VERSION); exit(0); case 'U': drop_privileges = 1;