Skip to content

Commit

Permalink
deps: update uvwasi to 0.0.17
Browse files Browse the repository at this point in the history
PR-URL: #47866
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
nodejs-github-bot committed May 19, 2023
1 parent 3959551 commit c1d496a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deps/uvwasi/include/uvwasi.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extern "C" {

#define UVWASI_VERSION_MAJOR 0
#define UVWASI_VERSION_MINOR 0
#define UVWASI_VERSION_PATCH 16
#define UVWASI_VERSION_PATCH 17
#define UVWASI_VERSION_HEX ((UVWASI_VERSION_MAJOR << 16) | \
(UVWASI_VERSION_MINOR << 8) | \
(UVWASI_VERSION_PATCH))
Expand Down
4 changes: 2 additions & 2 deletions deps/uvwasi/src/uvwasi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ uvwasi_errno_t uvwasi_fd_prestat_get(uvwasi_t* uvwasi,
}

buf->pr_type = UVWASI_PREOPENTYPE_DIR;
buf->u.dir.pr_name_len = strlen(wrap->path) + 1;
buf->u.dir.pr_name_len = strlen(wrap->path);
err = UVWASI_ESUCCESS;
exit:
uv_mutex_unlock(&wrap->mutex);
Expand Down Expand Up @@ -1156,7 +1156,7 @@ uvwasi_errno_t uvwasi_fd_prestat_dir_name(uvwasi_t* uvwasi,
goto exit;
}

size = strlen(wrap->path) + 1;
size = strlen(wrap->path);
if (size > (size_t) path_len) {
err = UVWASI_ENOBUFS;
goto exit;
Expand Down

0 comments on commit c1d496a

Please sign in to comment.