Skip to content

Commit e9a0dce

Browse files
committed
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!
1 parent 10d9eae commit e9a0dce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ static void parse_opts(int argc, char **argv)
584584
++verbose;
585585
break;
586586
case 'V':
587-
printf("%s\n", PACKAGE_STRING);
587+
printf("%s %s\n", PACKAGE_NAME, PACKAGE_VERSION);
588588
exit(0);
589589
case 'U':
590590
drop_privileges = 1;

0 commit comments

Comments
 (0)