summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 54eb710..8150ec6 100644
--- a/lib.c
+++ b/lib.c
@@ -2260,7 +2260,7 @@ uc_system(uc_vm *vm, size_t nargs)
goto fail;
case 0:
- execv(arglist[0], (char * const *)arglist);
+ execvp(arglist[0], (char * const *)arglist);
exit(-1);
break;