summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 70a924c..1d1f7b6 100644
--- a/tests/libopkg_test.c
+++ b/tests/libopkg_test.c
@@ -172,7 +172,7 @@ main (int argc, char **argv)
break;
case 'u':
- if (argv[1][3] == 'd')
+ if (argv[1][2] == 'd')
{
err = opkg_update_package_lists (progress_callback, "Updating...");
printf ("\nopkg_update_package_lists returned %d (%s)\n", err, errors[err]);