diff options
author | Stefan Kerkmann <karlk90@pm.me> | 2022-07-07 14:14:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 14:14:09 +0200 |
commit | 643f6367a19649a0f5af6d43f2ed7f0e93b21f70 (patch) | |
tree | b51ba73169e3558dc724a25d995ecbd912c336bf /keyboards/cannonkeys/satisfaction75 | |
parent | 8224f62806b66f0825b68fd8c00436ee57a28e9a (diff) |
[Fix] Patches after printf library update (#17584)
* Add missing '(' to print_bin_reverse32 declaration
* Fix insufficient character buffers on satisfaction75
* Remove \0 character in format string and use corrected offset math
instead on rocketboard 16
* Replace snprintf_ with snprintf for djinn
* Explicitly ignore format checks for tracktyl manuform that uses %b
specifier
* Print properly escaped version string in command.c, as PRODUCT or
other defines can contain constructs like 'Vendor keyboard 66%' which
will be interpreted as a format specifier
Diffstat (limited to 'keyboards/cannonkeys/satisfaction75')
-rw-r--r-- | keyboards/cannonkeys/satisfaction75/satisfaction_oled.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/cannonkeys/satisfaction75/satisfaction_oled.c b/keyboards/cannonkeys/satisfaction75/satisfaction_oled.c index fff8b65bd7..1e8465387c 100644 --- a/keyboards/cannonkeys/satisfaction75/satisfaction_oled.c +++ b/keyboards/cannonkeys/satisfaction75/satisfaction_oled.c @@ -145,7 +145,7 @@ static char* get_time(void) { hour = 12; } - static char time_str[8] = ""; + static char time_str[11] = ""; sprintf(time_str, "%02d:%02d%s", hour, minute, is_pm ? "pm" : "am"); return time_str; @@ -162,7 +162,7 @@ static char* get_date(void) { day = day_config; } - static char date_str[11] = ""; + static char date_str[15] = ""; sprintf(date_str, "%04d-%02d-%02d", year, month, day); return date_str; |