Skip to content

Commit

Permalink
#102 fix sanity
Browse files Browse the repository at this point in the history
  • Loading branch information
fdefelici committed Jun 18, 2024
1 parent 3a9582c commit 99da1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clove-unit.h
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ char* __clove_path_basepath(const char* path) {
} else {
// Calculate base path length based on the position of the last path separator.
size_t base_length = (size_t)(last_char_index + 1);
char* base_path = __CLOVE_MEMORY_MALLOC_TYPE_N(char, base_length);
char* base_path = __CLOVE_MEMORY_CALLOC_TYPE_N(char, base_length);
__clove_string_strncpy(base_path, base_length, temp_path, base_length - 1);
__clove_path_to_os(base_path);
result = base_path;
Expand Down

0 comments on commit 99da1b3

Please sign in to comment.