diff options
author | Manu Abraham <manu@linuxtv.org> | 2006-06-21 17:27:57 +0400 |
---|---|---|
committer | Manu Abraham <manu@linuxtv.org> | 2006-06-21 17:27:57 +0400 |
commit | 1c40df9379491ac9c7bd9adefc231f71eb869af9 (patch) | |
tree | 59ae6a7fd10d14e18cf40e194eba1f8e96da2dc8 /linux/drivers/media/dvb/bt8xx/dst.c | |
parent | c803d36573458c7fb96238c68265d01c3b066077 (diff) | |
download | mediapointer-dvb-s2-1c40df9379491ac9c7bd9adefc231f71eb869af9.tar.gz mediapointer-dvb-s2-1c40df9379491ac9c7bd9adefc231f71eb869af9.tar.bz2 |
Fix string length
From: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/bt8xx/dst.c')
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/dst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dst.c b/linux/drivers/media/dvb/bt8xx/dst.c index 52cbe1500..68db48bf8 100644 --- a/linux/drivers/media/dvb/bt8xx/dst.c +++ b/linux/drivers/media/dvb/bt8xx/dst.c @@ -825,7 +825,7 @@ static int dst_card_type(struct dst_state *state) return -1; } memset(&state->card_info, '\0', 8); - memcpy(&state->card_info, &state->rxbuffer, 8); + memcpy(&state->card_info, &state->rxbuffer, 7); dprintk(verbose, DST_ERROR, 1, "Device Model=[%s]", &state->card_info[0]); return 0; @@ -840,7 +840,7 @@ static int dst_get_vendor(struct dst_state *state) return -1; } memset(&state->vendor, '\0', 8); - memcpy(&state->vendor, &state->rxbuffer, 8); + memcpy(&state->vendor, &state->rxbuffer, 7); dprintk(verbose, DST_ERROR, 1, "Vendor=[%s]", &state->vendor[0]); return 0; |