aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPaul Eggert2014-09-23 10:03:48 -0700
committerPaul Eggert2014-09-23 10:03:48 -0700
commit97914756e8de76b8e83550eab2e12e5dfcb87754 (patch)
tree81c4f9d262e1cce19a6294658231bf854a4d8029 /src/xterm.c
parentccc7be94d73afce4295b6ee7eaa388d1cd930926 (diff)
downloademacs-97914756e8de76b8e83550eab2e12e5dfcb87754.tar.gz
emacs-97914756e8de76b8e83550eab2e12e5dfcb87754.zip
* lisp.h (lispstpcpy): Rename from lispstrcpy, and act like stpcpy.
All callers changed. * xterm.c (x_term_init): Use new functionality to avoid two needs to compute a string length.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 1b721b042be..e24e86ce412 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10902,8 +10902,9 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
10902 dpyinfo->x_id = ++x_display_id; 10902 dpyinfo->x_id = ++x_display_id;
10903 dpyinfo->x_id_name = xmalloc (SBYTES (Vinvocation_name) 10903 dpyinfo->x_id_name = xmalloc (SBYTES (Vinvocation_name)
10904 + SBYTES (Vsystem_name) + 2); 10904 + SBYTES (Vsystem_name) + 2);
10905 strcat (strcat (lispstrcpy (dpyinfo->x_id_name, Vinvocation_name), "@"), 10905 char *nametail = lispstpcpy (dpyinfo->x_id_name, Vinvocation_name);
10906 SSDATA (Vsystem_name)); 10906 *nametail++ = '@';
10907 lispstpcpy (nametail, Vsystem_name);
10907 10908
10908 /* Figure out which modifier bits mean what. */ 10909 /* Figure out which modifier bits mean what. */
10909 x_find_modifier_meanings (dpyinfo); 10910 x_find_modifier_meanings (dpyinfo);