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/nsfont.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/nsfont.m')
-rw-r--r-- | src/nsfont.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsfont.m b/src/nsfont.m index f5e89d32bfc..683ab178836 100644 --- a/src/nsfont.m +++ b/src/nsfont.m @@ -93,7 +93,7 @@ ns_get_family (Lisp_Object font_spec) return nil; else { - char *tmp = xstrdup (SSDATA (SYMBOL_NAME (tem))); + char *tmp = xlispstrdup (SYMBOL_NAME (tem)); NSString *family; ns_unescape_name (tmp); family = [NSString stringWithUTF8String: tmp]; |