diff options
author | Stefan Bühler <stbuehler@web.de> | 2008-07-30 19:38:32 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2008-07-30 19:38:32 +0000 |
commit | 52861d77dfe4e470cac6114cd9f335b30a88b9f5 (patch) | |
tree | 3d05443ad7a0efcefcbcbc46c5a76c202e53af14 /src/proc_open.c | |
parent | 0c8ebbeb606561da6acb4d576fb8ab24571fa2dc (diff) | |
download | lighttpd-git-52861d77dfe4e470cac6114cd9f335b30a88b9f5.tar.gz |
Replace buffer_{append,copy}_string with the _len variant where possible (#1732, thx crypt)
Replace BUFFER_{APPEND,COPY}_STRING_CONST with _len(b, CONST_STRL_LEN(x))
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2250 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/proc_open.c')
-rw-r--r-- | src/proc_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proc_open.c b/src/proc_open.c index 1f55b619..14f2539e 100644 --- a/src/proc_open.c +++ b/src/proc_open.c @@ -184,7 +184,7 @@ int proc_open(proc_handler_t *proc, const char *command) { buffer_append_string(cmdline, shell); } else { buffer_append_string(cmdline, windir); - buffer_append_string(cmdline, "\\system32\\cmd.exe"); + buffer_append_string_len(cmdline, CONST_STR_LEN("\\system32\\cmd.exe")); } buffer_append_string_len(cmdline, CONST_STR_LEN(" /c ")); buffer_append_string(cmdline, command); |