Skip to content

Commit

Permalink
make it clear resolve_path expects null-terminated string
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski committed Aug 30, 2024
1 parent 13aff19 commit c08241e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/path_resolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ static uvwasi_errno_t uvwasi__resolve_path_to_host(
char** resolved_path,
uvwasi_size_t* resolved_len
) {
/* Return the normalized path, but resolved to the host's real path. */
/* Return the normalized path, but resolved to the host's real path.
`path` must be a NULL-terminated string. */
char* res_path;
char* stripped_path;
int real_path_len;
Expand Down

0 comments on commit c08241e

Please sign in to comment.