diff options
| author | Dmitry Antipov | 2014-09-23 19:49:00 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-09-23 19:49:00 +0400 |
| commit | 59e10fbd934323702a4586f50139d58db846bbf1 (patch) | |
| tree | 194db3962ed3b518afc92eed10ed16c29f6e0b15 /src/xterm.c | |
| parent | c03d2c89fbf878575cc46011df44f04103d8e19b (diff) | |
| download | emacs-59e10fbd934323702a4586f50139d58db846bbf1.tar.gz emacs-59e10fbd934323702a4586f50139d58db846bbf1.zip | |
Use known length of a Lisp string to copy it faster.
* lisp.h (lispstrcpy): New function. Add comment.
* callproc.c (child_setup):
* dbusbind.c (xd_append_arg):
* doc.c (get_doc_string):
* font.c (Ffont_xlfd_name):
* frame.c (xrdb_get_resource):
* process.c (Fmake_network_process, network_interface_info):
* w32fns.c (Fx_open_connection):
* w32proc.c (sys_spawnve):
* xfns.c (select_visual):
* xfont.c (xfont_list):
* xsmfns.c (x_session_initialize):
* xterm.c (x_term_init): Use it.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 4b4349d2622..1b721b042be 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -10902,7 +10902,7 @@ 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 (strcpy (dpyinfo->x_id_name, SSDATA (Vinvocation_name)), "@"), | 10905 | strcat (strcat (lispstrcpy (dpyinfo->x_id_name, Vinvocation_name), "@"), |
| 10906 | SSDATA (Vsystem_name)); | 10906 | SSDATA (Vsystem_name)); |
| 10907 | 10907 | ||
| 10908 | /* Figure out which modifier bits mean what. */ | 10908 | /* Figure out which modifier bits mean what. */ |