This is an automated email from Gerrit. Andreas Fritiofson ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2038
-- gerrit commit 2358b253530050b9d161fc5bfbb36c25cd0cae06 Author: Andreas Fritiofson <[email protected]> Date: Mon Mar 10 22:18:57 2014 +0100 flash/efm32: Fix bug in odd byte count padding Change-Id: I7fcd152a8501f399c6ac5a85fd62a84c82b030a0 Signed-off-by: Andreas Fritiofson <[email protected]> diff --git a/src/flash/nor/efm32.c b/src/flash/nor/efm32.c index 858bb0a..6e2ebce 100644 --- a/src/flash/nor/efm32.c +++ b/src/flash/nor/efm32.c @@ -763,7 +763,7 @@ static int efm32x_write(struct flash_bank *bank, uint8_t *buffer, } LOG_INFO("odd number of bytes to write (%" PRIu32 "), extending to %" PRIu32 " " "and padding with 0xff", old_count, count); - memset(buffer, 0xff, count); + memset(new_buffer, 0xff, count); buffer = memcpy(new_buffer, buffer, old_count); } -- ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
