diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2015-01-20 13:24:09 +0300 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2015-01-20 13:24:09 +0300 |
commit | f9775f21fcddd3d3715cb3249090d99322488a45 (patch) | |
tree | b8efeeec110b5db69aefd44aee4cc94656e66b64 /src/nsterm.m | |
parent | d13fc2913d7c106f3c78e16fa2961678b8f9c472 (diff) | |
download | emacs-f9775f21fcddd3d3715cb3249090d99322488a45.tar.gz |
Prefer xlispstrdup to avoid dumb calls to strlen
* nsfont.m (ns_get_family):
* nsterm.m (ns_term_init):
* w32fns.c (w32_window):
* xfns.c (x_window, Fx_select_font): Use xlispstrdup.
Diffstat (limited to 'src/nsterm.m')
-rw-r--r-- | src/nsterm.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index bf3192bf432..b07fa1c31b0 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -4313,7 +4313,7 @@ ns_term_init (Lisp_Object display_name) dpyinfo->name_list_element = Fcons (display_name, Qnil); - terminal->name = xstrdup (SSDATA (display_name)); + terminal->name = xlispstrdup (display_name); unblock_input (); |