From d0af20b4de3c1c4033d12993e3f3943370214a9f Mon Sep 17 00:00:00 2001 From: joeycastillo Date: Sun, 6 Oct 2024 11:28:28 -0400 Subject: [PATCH] avoid running over into position 10 --- watch-library/shared/watch/watch_common_display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/watch-library/shared/watch/watch_common_display.c b/watch-library/shared/watch/watch_common_display.c index baf0fde8..96b9032d 100644 --- a/watch-library/shared/watch/watch_common_display.c +++ b/watch-library/shared/watch/watch_common_display.c @@ -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++; }