aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/elfutils/patches/002-argp_standalone.patch
diff options
context:
space:
mode:
authorJames <>2015-11-04 11:49:21 +0000
committerJames <>2015-11-04 11:49:21 +0000
commit716ca530e1c4515d8683c9d5be3d56b301758b66 (patch)
tree700eb5bcc1a462a5f21dcec15ce7c97ecfefa772 /package/libs/elfutils/patches/002-argp_standalone.patch
downloadtrunk-47381-master.tar.gz
trunk-47381-master.tar.bz2
trunk-47381-master.zip
trunk-47381HEADmaster
Diffstat (limited to 'package/libs/elfutils/patches/002-argp_standalone.patch')
-rw-r--r--package/libs/elfutils/patches/002-argp_standalone.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/libs/elfutils/patches/002-argp_standalone.patch b/package/libs/elfutils/patches/002-argp_standalone.patch
new file mode 100644
index 0000000..8e2ca1b
--- /dev/null
+++ b/package/libs/elfutils/patches/002-argp_standalone.patch
@@ -0,0 +1,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);
+ }
+ }