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