1
0
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:
Richard M. Stallman 1994-07-27 17:59:03 +00:00
parent d86bdede4d
commit defb80d7ad

View File

@ -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);
}