summaryrefslogtreecommitdiffstats
path: root/package/multimedia/alsa-utils/alsa-utils-1.0.18-fix_sysv_legacy.patch
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-16 22:06:49 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-16 22:06:49 +0000
commit2326230ea0f4b0f45c1c56ef4aa2f470f9004308 (patch)
treef6ce11ceebd762691de57b136e15bcf0255c1705 /package/multimedia/alsa-utils/alsa-utils-1.0.18-fix_sysv_legacy.patch
parente4c50fe4642b9abb61a223ea32dd3d2759fcc4b4 (diff)
downloadbuildroot-novena-2326230ea0f4b0f45c1c56ef4aa2f470f9004308.tar.gz
buildroot-novena-2326230ea0f4b0f45c1c56ef4aa2f470f9004308.zip
Fix legacy strings for alsa-utils & remove man pages
Diffstat (limited to 'package/multimedia/alsa-utils/alsa-utils-1.0.18-fix_sysv_legacy.patch')
-rw-r--r--package/multimedia/alsa-utils/alsa-utils-1.0.18-fix_sysv_legacy.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/multimedia/alsa-utils/alsa-utils-1.0.18-fix_sysv_legacy.patch b/package/multimedia/alsa-utils/alsa-utils-1.0.18-fix_sysv_legacy.patch
new file mode 100644
index 000000000..c6135b4c0
--- /dev/null
+++ b/package/multimedia/alsa-utils/alsa-utils-1.0.18-fix_sysv_legacy.patch
@@ -0,0 +1,20 @@
+--- a/alsactl/init_parse.c 2009-01-15 10:44:48.000000000 +0000
++++ b/alsactl/init_parse.c 2009-01-15 10:46:41.000000000 +0000
+@@ -381,7 +381,7 @@ static int set_ctl_value(struct space *s
+ snd_ctl_elem_value_set_integer(space->ctl_value, idx, val);
+ } else if (items > 2 && value[items-2] == 'd' && value[items-1] == 'B') {
+ val = strtol(value, NULL, 0) * 100;
+- if ((pos2 = index(value, '.')) != NULL) {
++ if ((pos2 = strchr(value, '.')) != NULL) {
+ if (isdigit(*(pos2-1)) && isdigit(*(pos2-2))) {
+ if (val < 0)
+ val -= strtol(pos2 + 1, NULL, 0);
+@@ -1253,7 +1253,7 @@ static char *new_root_dir(const char *fi
+
+ res = strdup(filename);
+ if (res) {
+- tmp = rindex(res, '/');
++ tmp = strrchr(res, '/');
+ if (tmp)
+ *tmp = '\0';
+ }