From: Mark Andrews Date: Thu, 16 Sep 2004 02:12:37 +0000 (+0000) Subject: move the calculation of remaining X-Git-Tag: v9.2.5rc1~81^2~11 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=3e15f55914e341b45bf7f2fdb13905854f3464cf;p=thirdparty%2Fbind9.git move the calculation of remaining --- diff --git a/bin/dig/dig.c b/bin/dig/dig.c index 103963c8be2..b6afa4fa047 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dig.c,v 1.198 2004/09/16 01:01:25 marka Exp $ */ +/* $Id: dig.c,v 1.199 2004/09/16 02:12:37 marka Exp $ */ #include #include @@ -636,9 +636,9 @@ printgreeting(int argc, char **argv, dig_lookup_t *lookup) { "; (%d server%s found)\n", addresscount, addresscount > 1 ? "s" : ""); - strncat(lookup->cmdline, append, remaining); remaining = sizeof(lookup->cmdline) - strlen(lookup->cmdline) - 1; + strncat(lookup->cmdline, append, remaining); } if (first) { snprintf(append, sizeof(append),