Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: fix off-by-one error in uv_fs_stat
Browse files Browse the repository at this point in the history
uv__is_root typo caused incorrect fs.exists results in Node.
  • Loading branch information
Brandon Benvie authored and bnoordhuis committed Jan 28, 2012
1 parent 332b72e commit 74cff55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win/fs.c
Expand Up @@ -541,7 +541,7 @@ static int uv__is_root(const wchar_t* path) {
size_t len = wcslen(path);

/* Test for \ */
if (len == 0 && IS_SLASH(path[0])) {
if (len == 1 && IS_SLASH(path[0])) {
return 1;
}

Expand Down

0 comments on commit 74cff55

Please sign in to comment.