diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-10 10:23:51 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-10 10:23:51 +0000 | 
| commit | 230f57309dce0d01fd35bdc9dac460f348ec0dab (patch) | |
| tree | 63c2fde705d7bf0931bf5d425379cc2cc338a1b2 | |
| parent | dece25be6d34c098514ada240a52e13b6c8946c1 (diff) | |
Small fix in case hs->data_start != 0
| -rw-r--r-- | audio/headset.c | 2 | 
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) {  | 
