summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-12-28 21:40:39 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-12-28 21:40:39 +0000
commitf4d82deb36b857c6d60d9f31b60d58665a8d6216 (patch)
tree3c170c5886305b7cc397e42572c8faba20f58411 /src/flash
parent185870615c350660626be835e6bbca37733c3135 (diff)
downloadopenocd+libswd-f4d82deb36b857c6d60d9f31b60d58665a8d6216.tar.gz
openocd+libswd-f4d82deb36b857c6d60d9f31b60d58665a8d6216.tar.bz2
openocd+libswd-f4d82deb36b857c6d60d9f31b60d58665a8d6216.tar.xz
openocd+libswd-f4d82deb36b857c6d60d9f31b60d58665a8d6216.zip
Uwe Hermann <uwe@hermann-uwe.de> One of them is fixing a few compiler warnings (see attached patch) and
likely also one (non-cosmetic) bug (the 'id_buff' change, which seems to be a buffer overflow). git-svn-id: svn://svn.berlios.de/openocd/trunk@1293 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand.c b/src/flash/nand.c
index 971956e8..7f914075 100644
--- a/src/flash/nand.c
+++ b/src/flash/nand.c
@@ -375,7 +375,7 @@ int nand_read_status(struct nand_device_s *device, u8 *status)
int nand_probe(struct nand_device_s *device)
{
u8 manufacturer_id, device_id;
- u8 id_buff[5];
+ u8 id_buff[6];
int retval;
int i;