diff options
| author | Richard M. Stallman | 1994-07-27 17:59:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-07-27 17:59:03 +0000 |
| commit | defb80d7adcb5ea918dec614f0044fdc6967e4a2 (patch) | |
| tree | 8de1298ef0ea9bd0d237b50edb653c40a8712b45 /lib-src | |
| parent | d86bdede4dd6dd10766662350fb91e87cec81031 (diff) | |
| download | emacs-defb80d7adcb5ea918dec614f0044fdc6967e4a2.tar.gz emacs-defb80d7adcb5ea918dec614f0044fdc6967e4a2.zip | |
(main): New local var progname saves argv[0].
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsclient.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index f613daf21d5..76d0b4e54d9 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -196,6 +196,7 @@ main (argc, argv) | |||
| 196 | char gwdirb[BUFSIZ]; | 196 | char gwdirb[BUFSIZ]; |
| 197 | char *cwd; | 197 | char *cwd; |
| 198 | char *temp; | 198 | char *temp; |
| 199 | char *progname = argv[0]; | ||
| 199 | 200 | ||
| 200 | if (argc < 2) | 201 | if (argc < 2) |
| 201 | { | 202 | { |
| @@ -291,7 +292,7 @@ main (argc, argv) | |||
| 291 | msgp->mtype = 1; | 292 | msgp->mtype = 1; |
| 292 | if (msgsnd (s, msgp, strlen (msgp->mtext)+1, 0) < 0) | 293 | if (msgsnd (s, msgp, strlen (msgp->mtext)+1, 0) < 0) |
| 293 | { | 294 | { |
| 294 | fprintf (stderr, "%s: ", argv[0]); | 295 | fprintf (stderr, "%s: ", progname); |
| 295 | perror ("msgsnd"); | 296 | perror ("msgsnd"); |
| 296 | exit (1); | 297 | exit (1); |
| 297 | } | 298 | } |