1
0

002-argp_standalone.patch 554 B

1234567891011121314
  1. --- a/lib/color.c
  2. +++ b/lib/color.c
  3. @@ -131,8 +131,10 @@ valid arguments are:\n\
  4. - 'never', 'no', 'none'\n\
  5. - 'auto', 'tty', 'if-tty'\n"),
  6. program_invocation_short_name, arg);
  7. + char program_invocation_short_name_nonconst[sizeof(program_invocation_short_name)];
  8. + strcpy(program_invocation_short_name_nonconst, program_invocation_short_name);
  9. argp_help (&color_argp, stderr, ARGP_HELP_SEE,
  10. - program_invocation_short_name);
  11. + program_invocation_short_name_nonconst);
  12. exit (EXIT_FAILURE);
  13. }
  14. }