Skip to content

Commit

Permalink
uv_cwd API changed
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Mar 31, 2014
1 parent 24bd8e1 commit 4e19b59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flisp/builtins.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ static value_t fl_path_cwd(value_t *args, uint32_t nargs)
argcount("path.cwd", nargs, 1);
if (nargs == 0) {
char buf[1024];
err = uv_cwd(buf, sizeof(buf));
size_t len = sizeof(buf);
err = uv_cwd(buf, &len);
if (err != 0)
lerrorf(IOError, "path.cwd: could not get cwd: %s", uv_strerror(err));
return string_from_cstr(buf);
Expand Down

0 comments on commit 4e19b59

Please sign in to comment.