diff options
| author | Paul Eggert | 2014-09-23 10:03:48 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-09-23 10:03:48 -0700 |
| commit | 97914756e8de76b8e83550eab2e12e5dfcb87754 (patch) | |
| tree | 81c4f9d262e1cce19a6294658231bf854a4d8029 /src/xterm.c | |
| parent | ccc7be94d73afce4295b6ee7eaa388d1cd930926 (diff) | |
| download | emacs-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.c | 5 |
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); |