Skip to content

Commit

Permalink
Use progname instead of argv[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
goll72 committed Jan 28, 2023
1 parent 4077e37 commit eacf91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int main(int argc, char * const *argv)
confpath = optarg;
break;
case 'v':
printf("%s v" VERSION " built on " __TIME__ ", " __DATE__ "\n", argv[0]);
printf("%s v" VERSION " built on " __TIME__ ", " __DATE__ "\n", progname);
return EX_OK;
case 's':
logmode = LOG_MODE_STDOUT;
Expand Down

0 comments on commit eacf91c

Please sign in to comment.