Skip to content

Commit

Permalink
change from PATH_MAX to FILENAME_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Oct 9, 2024
1 parent 695533c commit 5516643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion programs/ziti-edge-tunnel/config-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
static char* identifier_path = NULL;

char* get_system_config_path(const char* base_dir) {
char actual_base_path[PATH_MAX];
char actual_base_path[FILENAME_MAX];
realpath(base_dir, actual_base_path);

char* config_path = malloc(FILENAME_MAX * sizeof(char));
Expand Down
2 changes: 1 addition & 1 deletion programs/ziti-edge-tunnel/instance-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void initialize_instance_config(const char* config_dir) {
return;
}

char actual_config_dir[PATH_MAX];
char actual_config_dir[FILENAME_MAX];
realpath(config_dir, actual_config_dir);

base_dir = strdup(actual_config_dir); //save the location of the config dir
Expand Down

0 comments on commit 5516643

Please sign in to comment.