]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): Fix args to handle `--display DISPLAY'.
authorKarl Heuer <kwzh@gnu.org>
Wed, 13 Dec 1995 02:33:20 +0000 (02:33 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 13 Dec 1995 02:33:20 +0000 (02:33 +0000)
src/emacs.c

index 052546a13caa9f8c3714251975f3fa5e7eec11be..08238e233d40bf6bdc699e533bd2756d06143da2 100644 (file)
@@ -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;