提交 56137411 编写于 作者: R Reinhard Nissl 提交者: Mauro Carvalho Chehab

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: NReinhard Nissl <rnissl@gmx.de>
Signed-off-by: NManu Abraham <manu@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 6f6c268b
......@@ -1277,8 +1277,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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册