aboutsummaryrefslogtreecommitdiff
path: root/src/systemcmds/mixer
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-10-13 11:44:26 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-10-13 11:44:26 +0200
commit1dc9569e31717aefab8e05b858122f433dab1698 (patch)
tree1367e5dcbdb785a4fd2c34c936a9f780b565e3e6 /src/systemcmds/mixer
parent42b75ae8963b2f711a72ac1cb6cfd1b44bd826b2 (diff)
downloadpx4-firmware-1dc9569e31717aefab8e05b858122f433dab1698.tar.gz
px4-firmware-1dc9569e31717aefab8e05b858122f433dab1698.tar.bz2
px4-firmware-1dc9569e31717aefab8e05b858122f433dab1698.zip
Fixed mixer chunk load and line ending detection for good.
Diffstat (limited to 'src/systemcmds/mixer')
-rw-r--r--src/systemcmds/mixer/mixer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemcmds/mixer/mixer.cpp b/src/systemcmds/mixer/mixer.cpp
index b1ebebbb4..6da39d371 100644
--- a/src/systemcmds/mixer/mixer.cpp
+++ b/src/systemcmds/mixer/mixer.cpp
@@ -102,7 +102,7 @@ load(const char *devname, const char *fname)
if (ioctl(dev, MIXERIOCRESET, 0))
err(1, "can't reset mixers on %s", devname);
- load_mixer_file(fname, &buf[0]);
+ load_mixer_file(fname, &buf[0], sizeof(buf));
/* XXX pass the buffer to the device */
int ret = ioctl(dev, MIXERIOCLOADBUF, (unsigned long)buf);