HP-UX cc doesn't like argv[0] in an initialization of an auto array.
This commit is contained in:
parent
6ab44ef499
commit
56b5f6480f
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#include "hstrerror.h"
|
#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;
|
char *cmnd;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ int main(int argc, char **argv) {
|
||||||
int i;
|
int i;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
char hostname[256];
|
char hostname[256];
|
||||||
char *fake_argv[] = { argv[0], hostname, NULL };
|
char *fake_argv[] = { NULL, hostname, NULL };
|
||||||
|
|
||||||
cmnd = argv[0];
|
cmnd = argv[0];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue