diff options
author | Manu Abraham <manu@linuxtv.org> | 2008-01-21 23:17:48 +0400 |
---|---|---|
committer | Manu Abraham <manu@linuxtv.org> | 2008-01-21 23:17:48 +0400 |
commit | a32a37328e5b8ce008dc2d3bdcae2690246b910a (patch) | |
tree | a5fc9affad6b28c3ece5ce151abe43ce0230d678 /linux/drivers/media/dvb/frontends/stb0899_drv.c | |
parent | e63a46a970e4722bcbcd2a9958d4c7ea1a2bae2f (diff) | |
download | mediapointer-dvb-s2-a32a37328e5b8ce008dc2d3bdcae2690246b910a.tar.gz mediapointer-dvb-s2-a32a37328e5b8ce008dc2d3bdcae2690246b910a.tar.bz2 |
Bug: a string which contains 4 digits needs an array
of size 5. The fifth character will hold the terminating '\0'
From: Reinhard Nissl <rnissl@gmx.de>
Signed-off-by: Reinhard Nissl <rnissl@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/stb0899_drv.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/stb0899_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/stb0899_drv.c b/linux/drivers/media/dvb/frontends/stb0899_drv.c index b2aad669a..8b74c8e80 100644 --- a/linux/drivers/media/dvb/frontends/stb0899_drv.c +++ b/linux/drivers/media/dvb/frontends/stb0899_drv.c @@ -1318,8 +1318,8 @@ int stb0899_get_dev_id(struct stb0899_state *state) u8 chip_id, release; u16 id; u32 demod_ver = 0, fec_ver = 0; - char demod_str[4] = { 0 }; - char fec_str[4] = { 0 }; + char demod_str[5] = { 0 }; + char fec_str[5] = { 0 }; id = stb0899_read_reg(state, STB0899_DEV_ID); dprintk(state->verbose, FE_DEBUG, 1, "ID reg=[0x%02x]", id); |