summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/libopkg_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libopkg_test.c b/tests/libopkg_test.c
index 1d1f7b6..073a9a7 100644
--- a/tests/libopkg_test.c
+++ b/tests/libopkg_test.c
@@ -167,7 +167,7 @@ main (int argc, char **argv)
printf ("Package \"%s\" not found!\n", find_pkg->name);
break;
case 'i':
- err = opkg_install_package (argv[1], progress_callback, "Installing...");
+ err = opkg_install_package (argv[2], progress_callback, "Installing...");
printf ("\nopkg_install_package returned %d (%s)\n", err, errors[err]);
break;