summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/headset.c')
-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) {