diff options
author | Reinhard Nissl <rnissl@gmx.de> | 2008-01-21 14:17:48 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:21 -0500 |
commit | 561374113e6dbd717ac4a578d99834219de9d3c1 (patch) | |
tree | f62d9ab185207b1effbaf5afa91618c3f4ec9f07 /drivers/media/dvb/frontends/stb0899_drv.c | |
parent | 6f6c268b0f1f6846584162053a47d3aadf34a3c4 (diff) |
V4L/DVB (9448): Bug: fix array size
Bug: a string which contains 4 digits needs an array
of size 5. The fifth character will hold the terminating '\0'
Signed-off-by: Reinhard Nissl <rnissl@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/stb0899_drv.c')
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_drv.c b/drivers/media/dvb/frontends/stb0899_drv.c index 3468f59ecec9..420dea120ad6 100644 --- a/drivers/media/dvb/frontends/stb0899_drv.c +++ b/drivers/media/dvb/frontends/stb0899_drv.c | |||
@@ -1277,8 +1277,8 @@ int stb0899_get_dev_id(struct stb0899_state *state) | |||
1277 | u8 chip_id, release; | 1277 | u8 chip_id, release; |
1278 | u16 id; | 1278 | u16 id; |
1279 | u32 demod_ver = 0, fec_ver = 0; | 1279 | u32 demod_ver = 0, fec_ver = 0; |
1280 | char demod_str[4] = { 0 }; | 1280 | char demod_str[5] = { 0 }; |
1281 | char fec_str[4] = { 0 }; | 1281 | char fec_str[5] = { 0 }; |
1282 | 1282 | ||
1283 | id = stb0899_read_reg(state, STB0899_DEV_ID); | 1283 | id = stb0899_read_reg(state, STB0899_DEV_ID); |
1284 | dprintk(state->verbose, FE_DEBUG, 1, "ID reg=[0x%02x]", id); | 1284 | dprintk(state->verbose, FE_DEBUG, 1, "ID reg=[0x%02x]", id); |