Merge pull request #540 from olerem/isobusfs_cmn_warning

isobusfs: address snprintf truncation warning with explicit limits
pull/542/head
Marc Kleine-Budde 2024-05-29 11:17:57 +02:00 committed by GitHub
commit c468568f1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ void isobusfs_log(log_level_t level, const char *fmt, ...)
va_end(args);
snprintf(complete_log_entry, sizeof(complete_log_entry),
"[%s] [%s]: %s", time_buffer, level_str, log_entry);
"[%.40s] [%.10s]: %.150s", time_buffer, level_str, log_entry);
if (interactive_mode) {
add_log_to_buffer(complete_log_entry);