File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ void handle_signal(int signum) {
126
126
127
127
void print_help (char * argv []) {
128
128
fprintf (stderr ,
129
- "dumb-init v%s"
129
+ "dumb-init v%* s"
130
130
"Usage: %s [option] command [[arg] ...]\n"
131
131
"\n"
132
132
"dumb-init is a simple process supervisor that forwards signals to children.\n"
@@ -144,7 +144,7 @@ void print_help(char *argv[]) {
144
144
" -V, --version Print the current version and exit.\n"
145
145
"\n"
146
146
"Full help is available online at https://github.com/Yelp/dumb-init\n" ,
147
- VERSION ,
147
+ VERSION_len , VERSION ,
148
148
argv [0 ]
149
149
);
150
150
}
@@ -199,7 +199,7 @@ char **parse_command(int argc, char *argv[]) {
199
199
debug = 1 ;
200
200
break ;
201
201
case 'V' :
202
- fprintf (stderr , "dumb-init v%s" , VERSION );
202
+ fprintf (stderr , "dumb-init v%*s" , VERSION_len , VERSION );
203
203
exit (0 );
204
204
case 'c' :
205
205
use_setsid = 0 ;
You can’t perform that action at this time.
0 commit comments