[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
This commit is contained in:
parent
8224f62806
commit
643f6367a1
7 changed files with 24 additions and 24 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue