summaryrefslogtreecommitdiff
path: root/src/nsterm.m
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2015-01-20 13:24:09 +0300
committerDmitry Antipov <dmantipov@yandex.ru>2015-01-20 13:24:09 +0300
commitf9775f21fcddd3d3715cb3249090d99322488a45 (patch)
treeb8efeeec110b5db69aefd44aee4cc94656e66b64 /src/nsterm.m
parentd13fc2913d7c106f3c78e16fa2961678b8f9c472 (diff)
downloademacs-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.m2
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 ();