Permalink
Browse files

update and support libuv-0.11.22

  • Loading branch information...
1 parent 4b1c02f commit d0bced674cc83592699c14da9057399ba8a2ecad @take-cheeze take-cheeze committed Mar 11, 2014
Showing with 4 additions and 3 deletions.
  1. +1 −1 README.md
  2. +1 −1 mrbgem.rake
  3. +2 −1 src/mrb_uv.c
View
@@ -11,5 +11,5 @@ MIT
libuv
-----
-Current mruby-uv use [libuv-v0.11.21](http://libuv.org/dist/v0.11.21/libuv-v0.11.21.tar.gz).
+Current mruby-uv use [libuv-v0.11.22](http://libuv.org/dist/v0.11.22/libuv-v0.11.22.tar.gz).
In Windows mruby-uv doesn't provide libuv builder so install it before you use this.
View
@@ -9,7 +9,7 @@ MRuby::Gem::Specification.new('mruby-uv') do |spec|
require 'open3'
- version = '0.11.21'
+ version = '0.11.22'
libuv_dir = "#{build_dir}/libuv-v#{version}"
libuv_lib = libfile "#{libuv_dir}/.libs/libuv"
header = "#{libuv_dir}/include/uv.h"
View
@@ -2899,6 +2899,7 @@ mrb_uv_process_spawn(mrb_state *mrb, mrb_value self)
mrb_value stdout_pipe;
mrb_value stderr_pipe;
char cwd[PATH_MAX] = {0};
+ size_t cwd_size = sizeof(cwd);
int i, err;
uv_stdio_container_t stdio[3];
uv_process_options_t opt = {0};
@@ -2919,7 +2920,7 @@ mrb_uv_process_spawn(mrb_state *mrb, mrb_value self)
}
mrb_iv_set(mrb, self, mrb_intern_lit(mrb, "exit_cb"), b);
- uv_cwd(cwd, sizeof(cwd));
+ uv_cwd(cwd, &cwd_size);
args = mrb_malloc(mrb, sizeof(char*) * (RARRAY_LEN(arg_args)+2));
args[0] = RSTRING_PTR(arg_file);
for (i = 0; i < RARRAY_LEN(arg_args); i++) {

0 comments on commit d0bced6

Please sign in to comment.