Skip to content

Commit

Permalink
Fix: do not crash on ASCII chars with a numeric value exceeding 127.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Feb 22, 2024
1 parent 9a2638e commit 6cafff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArduinoGraphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void ArduinoGraphics::text(const char* str, int x, int y)
}

while (*str) {
int c = *str++;
uint8_t const c = (uint8_t)*str++;

if (c == '\n') {
y += _font->height;
Expand Down

0 comments on commit 6cafff9

Please sign in to comment.