]> git.earman.xyz Git - sensor-watch.git/commitdiff
avoid running over into position 10
authorjoeycastillo <joeycastillo@utexas.edu>
Sun, 6 Oct 2024 15:28:28 +0000 (11:28 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Sun, 6 Oct 2024 15:28:28 +0000 (11:28 -0400)
watch-library/shared/watch/watch_common_display.c

index baf0fde8619e290a97a9abdb201220e5db90056a..96b9032da026779c92da41d66318f0f22198d446 100644 (file)
@@ -249,6 +249,7 @@ void watch_display_text_with_fallback(watch_position_t location, const char *str
                 i++;
             }
             while (string[i] != 0) {
+                if (4 + i - offset == 10) break;
                 watch_display_character(string[i], 4 + i - offset);
                 i++;
             }