diff options
| author | Dmitry Antipov | 2013-08-14 20:36:16 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-14 20:36:16 +0400 |
| commit | 5b71542de3ef7f08b7c30e93340502d7cc120910 (patch) | |
| tree | dfb9bee6c19bf4467852500cf6b53771652e3d84 /src/xterm.c | |
| parent | d48d97ee4ab07e0c3e8c1a63efcfb707eef1b352 (diff) | |
| download | emacs-5b71542de3ef7f08b7c30e93340502d7cc120910.tar.gz emacs-5b71542de3ef7f08b7c30e93340502d7cc120910.zip | |
Utility function and macro to copy Lisp string to C string.
* lisp.h (xlispstrdupa): New macro.
(xlispstrdup): New prototype.
* alloc.c (xlispstrdup): New function.
* callint.c (Fcall_interactively):
* fileio.c (Ffile_name_directory, Fexpand_file_name)
(Fsubstitute_in_file_name):
* frame.c (Fmake_terminal_frame): Use xlispstrdupa.
* image.c (x_create_bitmap_from_file):
* w32term.c (w32_term_init):
* xterm.c (x_term_init): Use xlispstrdup.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index 15ad3bdf851..9e1e32a2faf 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -10038,9 +10038,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 10038 | dpyinfo->display = dpy; | 10038 | dpyinfo->display = dpy; |
| 10039 | 10039 | ||
| 10040 | /* Set the name of the terminal. */ | 10040 | /* Set the name of the terminal. */ |
| 10041 | terminal->name = xmalloc (SBYTES (display_name) + 1); | 10041 | terminal->name = xlispstrdup (display_name); |
| 10042 | memcpy (terminal->name, SSDATA (display_name), SBYTES (display_name)); | ||
| 10043 | terminal->name[SBYTES (display_name)] = 0; | ||
| 10044 | 10042 | ||
| 10045 | #if 0 | 10043 | #if 0 |
| 10046 | XSetAfterFunction (x_current_display, x_trace_wire); | 10044 | XSetAfterFunction (x_current_display, x_trace_wire); |