fix out of bounds access when position != 0

This commit is contained in:
Joey Castillo 2022-01-19 17:22:31 -05:00
parent c012a65ea2
commit 3efdcd78a1

View File

@ -236,7 +236,7 @@ void watch_display_string(char *string, uint8_t position) {
while(string[i] != 0) { while(string[i] != 0) {
watch_display_character(string[i], position + i); watch_display_character(string[i], position + i);
i++; i++;
if (i >= Num_Chars) break; if (position + i >= Num_Chars) break;
} }
// uncomment this line to see screen output on terminal, i.e. // uncomment this line to see screen output on terminal, i.e.
// FR 29 // FR 29