summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-21 14:41:27 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-24 08:16:41 -0500
commite2192d9f57daea6cf2fc4683164d294839510b45 (patch)
tree14fd199a555c5a89b947f53c1f58d392929d5ac4
parentlpc176x/console/console-config.c: Conditionalize code to avoid unused warnings (diff)
downloadrtems-e2192d9f57daea6cf2fc4683164d294839510b45.tar.bz2
nds/libnds/source/arm7/clock.c: Avoid over indexing array
-rw-r--r--c/src/lib/libbsp/arm/nds/libnds/source/arm7/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/arm/nds/libnds/source/arm7/clock.c b/c/src/lib/libbsp/arm/nds/libnds/source/arm7/clock.c
index b7024f3632..bd75197d6b 100644
--- a/c/src/lib/libbsp/arm/nds/libnds/source/arm7/clock.c
+++ b/c/src/lib/libbsp/arm/nds/libnds/source/arm7/clock.c
@@ -171,7 +171,7 @@ void rtcGetTimeAndDate(uint8 * time) {
//---------------------------------------------------------------------------------
void rtcSetTimeAndDate(uint8 * time) {
//---------------------------------------------------------------------------------
- uint8 command[8];
+ uint8 command[8 + 1];
int i;
for ( i=0; i< 8; i++ ) {