Skip to content

Commit 169c8ee

Browse files
nodejs-github-botMoLow
authored andcommitted
deps: update uvwasi to 0.0.17
PR-URL: #47866 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 8ae5c8c commit 169c8ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

deps/uvwasi/include/uvwasi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ extern "C" {
1010

1111
#define UVWASI_VERSION_MAJOR 0
1212
#define UVWASI_VERSION_MINOR 0
13-
#define UVWASI_VERSION_PATCH 16
13+
#define UVWASI_VERSION_PATCH 17
1414
#define UVWASI_VERSION_HEX ((UVWASI_VERSION_MAJOR << 16) | \
1515
(UVWASI_VERSION_MINOR << 8) | \
1616
(UVWASI_VERSION_PATCH))

deps/uvwasi/src/uvwasi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ uvwasi_errno_t uvwasi_fd_prestat_get(uvwasi_t* uvwasi,
11221122
}
11231123

11241124
buf->pr_type = UVWASI_PREOPENTYPE_DIR;
1125-
buf->u.dir.pr_name_len = strlen(wrap->path) + 1;
1125+
buf->u.dir.pr_name_len = strlen(wrap->path);
11261126
err = UVWASI_ESUCCESS;
11271127
exit:
11281128
uv_mutex_unlock(&wrap->mutex);
@@ -1156,7 +1156,7 @@ uvwasi_errno_t uvwasi_fd_prestat_dir_name(uvwasi_t* uvwasi,
11561156
goto exit;
11571157
}
11581158

1159-
size = strlen(wrap->path) + 1;
1159+
size = strlen(wrap->path);
11601160
if (size > (size_t) path_len) {
11611161
err = UVWASI_ENOBUFS;
11621162
goto exit;

0 commit comments

Comments
 (0)