Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix file length calculation #693

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 =
".dlt.gz"; // Unknown here if gzip is used but we assume so as it leads
averater marked this conversation as resolved.
Show resolved Hide resolved
// to shorter available space
const int smax = DLT_MOUNT_PATH_MAX - strlen(suffix) - 1;
int spos = 0;
log_file_name[spos] = '\0';
Expand Down