diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-08-09 16:25:34 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-08-09 16:25:34 +0400 |
commit | 309f24d1ec07646fb1a090ee10fe456e79aea097 (patch) | |
tree | 19ba0104e3713ee963113a52f9b38107a3740b2a /src/emacs.c | |
parent | 55902276706ea2db832ad5748a18ab392a0873f1 (diff) | |
download | emacs-309f24d1ec07646fb1a090ee10fe456e79aea097.tar.gz |
Use xstrdup and build_unibyte_string where applicable.
* alloc.c (xstrdup): Tiny cleanup. Add eassert.
* xfns.c (x_window):
* xrdb.c (x_get_customization_string):
* xterm.c (xim_initialize):
* w32fns.c (w32_window): Use xstrdup.
(w32_display_monitor_attributes_list):
* emacs.c (init_cmdargs):
* keyboard.c (PUSH_C_STR):
* nsfont.m (nsfont_open):
* sysdep.c (system_process_attributes):
* w32.c (system_process_attributes):
* xdisp.c (message1, message1_nolog): Use build_unibyte_string.
Diffstat (limited to 'src/emacs.c')
-rw-r--r-- | src/emacs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c index cf3a3c68932..23aef6a2b65 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -517,8 +517,7 @@ init_cmdargs (int argc, char **argv, int skip_args) They are decoded in the function command-line after we know locale-coding-system. */ Vcommand_line_args - = Fcons (make_unibyte_string (argv[i], strlen (argv[i])), - Vcommand_line_args); + = Fcons (build_unibyte_string (argv[i]), Vcommand_line_args); } unbind_to (count, Qnil); |