mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-29 19:48:19 +00:00
(main): New local var progname saves argv[0].
This commit is contained in:
parent
d86bdede4d
commit
defb80d7ad
@ -196,6 +196,7 @@ main (argc, argv)
|
||||
char gwdirb[BUFSIZ];
|
||||
char *cwd;
|
||||
char *temp;
|
||||
char *progname = argv[0];
|
||||
|
||||
if (argc < 2)
|
||||
{
|
||||
@ -291,7 +292,7 @@ main (argc, argv)
|
||||
msgp->mtype = 1;
|
||||
if (msgsnd (s, msgp, strlen (msgp->mtext)+1, 0) < 0)
|
||||
{
|
||||
fprintf (stderr, "%s: ", argv[0]);
|
||||
fprintf (stderr, "%s: ", progname);
|
||||
perror ("msgsnd");
|
||||
exit (1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user