ppc405_uc: fix a buffer overflow
commit4508d81a788f451c83604e1d0033243e191d71a7
authorBlue Swirl <blauwirbel@gmail.com>
Wed, 12 Jan 2011 21:12:31 +0000 (12 21:12 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 12 Jan 2011 21:12:31 +0000 (12 21:12 +0000)
tree757bbf683e32be245bd3d9c760501e80ea667850
parentc46a3ea025b147d58e4c7a222307ccba1e9e376f
ppc405_uc: fix a buffer overflow

Fix a buffer overflow, reported by cppcheck:
[/src/qemu/hw/ppc405_uc.c:72]: (error) Buffer access out-of-bounds: bd.bi_s_version

The use of field bi_s_version seems to be a typo, it should be
bi_r_version.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/ppc405_uc.c