From 5c1d459b67bc0790a185bdf6ef8e60678a040c64 Mon Sep 17 00:00:00 2001 From: Andre Nathan Date: Fri, 6 Dec 2013 09:36:51 -0200 Subject: [PATCH] Fix argv --- ext/lxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/lxc.c b/ext/lxc.c index 30f1727..fe3a052 100644 --- a/ext/lxc.c +++ b/ext/lxc.c @@ -1160,7 +1160,7 @@ lxc_run_command(VALUE self, VALUE rb_command) lxc_attach_command_t cmd; VALUE rb_program; - rb_program = rb_ary_shift(rb_command); + rb_program = rb_ary_entry(rb_command, 0); cmd.program = StringValuePtr(rb_program); cmd.argv = ruby_to_c_string_array(rb_command);