Skip to content

Commit 99da1b3

Browse files
committed
#102 fix sanity
1 parent 3a9582c commit 99da1b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clove-unit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ char* __clove_path_basepath(const char* path) {
983983
} else {
984984
// Calculate base path length based on the position of the last path separator.
985985
size_t base_length = (size_t)(last_char_index + 1);
986-
char* base_path = __CLOVE_MEMORY_MALLOC_TYPE_N(char, base_length);
986+
char* base_path = __CLOVE_MEMORY_CALLOC_TYPE_N(char, base_length);
987987
__clove_string_strncpy(base_path, base_length, temp_path, base_length - 1);
988988
__clove_path_to_os(base_path);
989989
result = base_path;

0 commit comments

Comments
 (0)