Commit defb80d7 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(main): New local var progname saves argv[0].

parent d86bdede
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment