summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-12-13 02:33:20 +0000
committerKarl Heuer <kwzh@gnu.org>1995-12-13 02:33:20 +0000
commit48245ef59212f580fa2585db3be47f4124750a78 (patch)
tree069267000ae1397831dde318024db31190218c11
parent63e0190ae6279d3724a0b065704301d188dd67d7 (diff)
downloademacs-48245ef59212f580fa2585db3be47f4124750a78.tar.gz
(main): Fix args to handle `--display DISPLAY'.
-rw-r--r--src/emacs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 052546a13ca..08238e233d4 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -620,7 +620,7 @@ Usage: %s [-t term] [--terminal term] [-nw] [--no-windows] [--batch]\n\
/* Change --display to -d, when its arg is separate. */
else if (displayname != 0 && skip_args > count_before
&& argv[count_before + 1][1] == '-')
- argv[count_before] = "-d";
+ argv[count_before + 1] = "-d";
/* Don't actually discard this arg. */
skip_args = count_before;