Skip to content

Commit

Permalink
Merge pull request #693 from averater/fix_file_length_calculation
Browse files Browse the repository at this point in the history
Fix file length calculation
  • Loading branch information
lti9hc authored Dec 5, 2024
2 parents 355bfe0 + 1e9d141 commit 35fa48e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/offlinelogstorage/dlt_offline_logstorage_behavior.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ void dlt_logstorage_log_file_name(char *log_file_name,
index_width = 0;
}

const char * suffix = ".dlt";
const char *suffix =
filter_config->gzip_compression == DLT_LOGSTORAGE_GZIP_ON ? ".dlt.gz"
: ".dlt";
const int smax = DLT_MOUNT_PATH_MAX - strlen(suffix) - 1;
int spos = 0;
log_file_name[spos] = '\0';
Expand Down

0 comments on commit 35fa48e

Please sign in to comment.