summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/bt8xx
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2006-06-21 17:27:57 +0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 09:05:17 +0400
commit351634d27a90a7668554452f4ba1688043aa1128 (patch)
treea31f684b0f712244741f0b45fa2a8d89c006c9f6 /drivers/media/dvb/bt8xx
parentb633c6d6a39a1cb78091fb04f093b16bdf8cbf59 (diff)
downloadlinux-351634d27a90a7668554452f4ba1688043aa1128.tar.xz
V4L/DVB (4166): Fix string length
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/bt8xx')
-rw-r--r--drivers/media/dvb/bt8xx/dst.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/bt8xx/dst.c b/drivers/media/dvb/bt8xx/dst.c
index 52cbe150077d..68db48bf89f4 100644
--- a/drivers/media/dvb/bt8xx/dst.c
+++ b/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;