From 011021d3018959757f4770ceea584c24a44cad04 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sat, 9 Jan 1999 01:00:52 +0000 Subject: [PATCH] fix typo; make compname be relative to origin if not absolute --- bin/tests/name_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/name_test.c b/bin/tests/name_test.c index da764896ec..d0c8305d31 100644 --- a/bin/tests/name_test.c +++ b/bin/tests/name_test.c @@ -85,7 +85,7 @@ main(int argc, char *argv[]) { origin = dns_rootname; if (argc > 1) { - if (strcasecmp("none", argv[0]) == 0) + if (strcasecmp("none", argv[1]) == 0) comp = NULL; else { len = strlen(argv[1]); @@ -96,7 +96,7 @@ main(int argc, char *argv[]) { ISC_BUFFERTYPE_BINARY); dns_name_init(&compname, compoffsets); result = dns_name_fromtext(&compname, &source, - dns_rootname, 0, + origin, 0, &target); if (result != 0) { fprintf(stderr,