Skip to content

Commit

Permalink
Merge pull request #707 from andreasbank/master
Browse files Browse the repository at this point in the history
Small bugfixes
  • Loading branch information
lti9hc authored Nov 20, 2024
2 parents 63ce404 + c36d886 commit 122170b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/offlinelogstorage/dlt_offline_logstorage.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ DLT_STATIC int dlt_logstorage_read_list_of_names(char **names, const char *value

DLT_STATIC int dlt_logstorage_set_number(unsigned int *number, unsigned int value)
{
if ((value == 0) || (value > UINT_MAX)) {
dlt_log(LOG_ERR, "Invalid, is not a number \n");
if (value == 0) {
dlt_log(LOG_ERR, "Invalid value of 0\n");
return -1;
}

Expand Down
2 changes: 1 addition & 1 deletion src/offlinelogstorage/dlt_offline_logstorage_behavior.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ int dlt_logstorage_storage_dir_info(DltLogStorageUserConfig *file_config,
__func__, dir, file);
return -1;
}
strncat(storage_path, dir, DLT_OFFLINE_LOGSTORAGE_MAX_PATH_LEN - strlen(dir));
strncat(storage_path, dir, DLT_OFFLINE_LOGSTORAGE_MAX_PATH_LEN - strlen(storage_path));
strncpy(file_name, file, DLT_OFFLINE_LOGSTORAGE_MAX_FILE_NAME_LEN);
} else {
strncpy(file_name, config->file_name, DLT_OFFLINE_LOGSTORAGE_MAX_FILE_NAME_LEN);
Expand Down

0 comments on commit 122170b

Please sign in to comment.