Skip to content

Commit 0b21b66

Browse files
added null termination to end of SPI test string
1 parent 5e8b7a6 commit 0b21b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TESTS/API/SPI/SPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void init_string(){
2323
for(x = 0; x < SD_TEST_STRING_MAX-1; x++){
2424
SD_TEST_STRING[x] = 'A' + (rand() % 26);
2525
}
26-
SD_TEST_STRING[SD_TEST_STRING_MAX] = 0;
26+
SD_TEST_STRING[SD_TEST_STRING_MAX-1] = 0;
2727

2828
printf("\r\n****\r\nSD Test String = %s\r\n****\r\n",SD_TEST_STRING);
2929
}

0 commit comments

Comments
 (0)