Skip to content

Commit 29e420e

Browse files
committed
Solved minor bug in safe version of load execution path.
1 parent bb95b52 commit 29e420e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/metacall/source/metacall.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ int metacall_execution_path_s(const char * tag, size_t tag_length, const char *
215215
strncpy(path_impl, path, path_length);
216216
strncpy(tag_impl, tag, tag_length);
217217

218+
path_impl[path_length] = '\0';
219+
tag_impl[tag_length] = '\0';
220+
218221
return loader_execution_path(tag_impl, path_impl);
219222
}
220223

0 commit comments

Comments
 (0)