From 56b5f6480fb958871009fd632a8da77e6dec324c Mon Sep 17 00:00:00 2001 From: hjp Date: Wed, 14 Aug 2002 19:06:39 +0000 Subject: [PATCH] HP-UX cc doesn't like argv[0] in an initialization of an auto array. --- dns/fqdn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/fqdn.c b/dns/fqdn.c index 6e590d2..e00f8ee 100644 --- a/dns/fqdn.c +++ b/dns/fqdn.c @@ -17,7 +17,7 @@ #include "hstrerror.h" -char cvs_id[] = "$Id: fqdn.c,v 1.2 2002-08-14 19:03:52 hjp Exp $"; +char cvs_id[] = "$Id: fqdn.c,v 1.3 2002-08-14 19:06:39 hjp Exp $"; char *cmnd; @@ -30,7 +30,7 @@ int main(int argc, char **argv) { int i; int rc = 0; char hostname[256]; - char *fake_argv[] = { argv[0], hostname, NULL }; + char *fake_argv[] = { NULL, hostname, NULL }; cmnd = argv[0];