HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d86bded
)
(main): New local var progname saves argv[0].
author
Richard M. Stallman
<rms@gnu.org>
Wed, 27 Jul 1994 17:59:03 +0000
(17:59 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 27 Jul 1994 17:59:03 +0000
(17:59 +0000)
lib-src/emacsclient.c
patch
|
blob
|
blame
|
history
diff --git
a/lib-src/emacsclient.c
b/lib-src/emacsclient.c
index
f613daf
..
76d0b4e
100644
(file)
--- a/
lib-src/emacsclient.c
+++ b/
lib-src/emacsclient.c
@@
-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);
}