diff options
| author | Dmitry Antipov | 2014-09-23 19:49:00 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-09-23 19:49:00 +0400 |
| commit | 59e10fbd934323702a4586f50139d58db846bbf1 (patch) | |
| tree | 194db3962ed3b518afc92eed10ed16c29f6e0b15 /src/callproc.c | |
| parent | c03d2c89fbf878575cc46011df44f04103d8e19b (diff) | |
| download | emacs-59e10fbd934323702a4586f50139d58db846bbf1.tar.gz emacs-59e10fbd934323702a4586f50139d58db846bbf1.zip | |
Use known length of a Lisp string to copy it faster.
* lisp.h (lispstrcpy): New function. Add comment.
* callproc.c (child_setup):
* dbusbind.c (xd_append_arg):
* doc.c (get_doc_string):
* font.c (Ffont_xlfd_name):
* frame.c (xrdb_get_resource):
* process.c (Fmake_network_process, network_interface_info):
* w32fns.c (Fx_open_connection):
* w32proc.c (sys_spawnve):
* xfns.c (select_visual):
* xfont.c (xfont_list):
* xsmfns.c (x_session_initialize):
* xterm.c (x_term_init): Use it.
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c index 4bedf671e83..2fa475e72df 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -1235,7 +1235,7 @@ child_setup (int in, int out, int err, char **new_argv, bool set_pgrp, | |||
| 1235 | #endif | 1235 | #endif |
| 1236 | temp = pwd_var + 4; | 1236 | temp = pwd_var + 4; |
| 1237 | memcpy (pwd_var, "PWD=", 4); | 1237 | memcpy (pwd_var, "PWD=", 4); |
| 1238 | strcpy (temp, SSDATA (current_dir)); | 1238 | lispstrcpy (temp, current_dir); |
| 1239 | 1239 | ||
| 1240 | #ifndef DOS_NT | 1240 | #ifndef DOS_NT |
| 1241 | /* We can't signal an Elisp error here; we're in a vfork. Since | 1241 | /* We can't signal an Elisp error here; we're in a vfork. Since |