nds/libnds/source/arm7/clock.c: Avoid over indexing array

This commit is contained in:
Joel Sherrill
2015-03-21 14:41:27 -05:00
parent e836c7c16c
commit e2192d9f57

View File

@@ -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++ ) {