summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-01-10 10:23:51 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-01-10 10:23:51 +0000
commit230f57309dce0d01fd35bdc9dac460f348ec0dab (patch)
tree63c2fde705d7bf0931bf5d425379cc2cc338a1b2 /audio
parentdece25be6d34c098514ada240a52e13b6c8946c1 (diff)
Small fix in case hs->data_start != 0
Diffstat (limited to 'audio')
-rw-r--r--audio/headset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c
index b1b1143f..02938768 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -310,7 +310,7 @@ static gboolean rfcomm_io_cb(GIOChannel *chan, GIOCondition cond, gpointer user_
/* Make sure the data is null terminated so we can use string
* functions */
- hs->buf[hs->data_length] = '\0';
+ hs->buf[hs->data_start + hs->data_length] = '\0';
cr = strchr(&hs->buf[hs->data_start], '\r');
if (cr) {