diff options
| author | Your Name <you@example.com> | 2026-05-18 15:11:04 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-18 15:11:04 +0530 |
| commit | 46169e5645ce1b1e33661f82734a4beeda828e39 (patch) | |
| tree | 961cf68d2a77d2a4d8c760743ddabc2c82d02663 /main/font.h | |
| parent | 6faa3cef6cc6206cc1579ad71f1042857a6d38d6 (diff) | |
fix: format-truncation warning in captive portal mint list
- Use tracked offset + snprintf instead of strncat
- Avoid -Werror=format-truncation= on 255-byte URL in HTML template
Diffstat (limited to 'main/font.h')
| -rw-r--r-- | main/font.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/font.h b/main/font.h new file mode 100644 index 0000000..8ef1955 --- /dev/null +++ b/main/font.h | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #ifndef FONT_H | ||
| 2 | #define FONT_H | ||
| 3 | |||
| 4 | #include <stdint.h> | ||
| 5 | |||
| 6 | #define FONT_GLYPH_W 8 | ||
| 7 | #define FONT_GLYPH_H 8 | ||
| 8 | |||
| 9 | extern const uint8_t font8x8_basic[128][8]; | ||
| 10 | |||
| 11 | #endif | ||