From e2125b01c229105d6d09eea61acf2ef8caaedca2 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 6 Jan 2000 14:47:36 +0000 Subject: [PATCH] wrong argv index was being atoi()d after conversion to isc/commandline.h --- bin/tests/omapi_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/omapi_test.c b/bin/tests/omapi_test.c index c6a5002e3a..e3d87f58ce 100644 --- a/bin/tests/omapi_test.c +++ b/bin/tests/omapi_test.c @@ -84,7 +84,7 @@ main (int argc, char **argv) { isc_result_totext(result)); exit (1); } - result = omapi_protocol_listen(listener, atoi(argv[2]), 1); + result = omapi_protocol_listen(listener, atoi(argv[1]), 1); if (result != ISC_R_SUCCESS) { fprintf (stderr, "omapi_listen: %s\n", isc_result_totext(result));