aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32proc.c
diff options
context:
space:
mode:
authorDmitry Antipov <[email protected]>2012-06-26 09:00:30 +0400
committerDmitry Antipov <[email protected]>2012-06-26 09:00:30 +0400
commit1130ecfcacce9743078221b956cd07b352776442 (patch)
tree4e2e38f1d5ea6cabc022cdca485d0d3ee92c91ef /src/w32proc.c
parent99027bdd81f63ea690394a153ef49a08f55e498d (diff)
* src/alloc.c: Remove build_string.
* src/lisp.h: Define build_string as static inline. This provides a better opportunity to optimize away calls to strlen when the function is called with compile-time constant argument. * src/image.c (imagemagick_error): Convert to build_string. * src/w32proc.c (sys_spawnve): Likewise. * src/xterm.c (x_term_init): Likewise. * admin/coccinelle/build_string.cocci: Semantic patch to convert from make_string to build_string.
Diffstat (limited to 'src/w32proc.c')
-rw-r--r--src/w32proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 2f5f39e68b..3864d15623 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -777,7 +777,7 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp)
}
/* Handle executable names without an executable suffix. */
- program = make_string (cmdname, strlen (cmdname));
+ program = build_string (cmdname);
if (NILP (Ffile_executable_p (program)))
{
struct gcpro gcpro1;