summaryrefslogtreecommitdiffhomepage
path: root/src/process
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-06-12 02:14:08 +0000
committermidipix <writeonce@midipix.org>2019-06-12 02:14:08 +0000
commitb2cb882ee287e581089b0687f88fd90fde4161d2 (patch)
treeed835123c0167fbc091d5755a1f97b237168c6ff /src/process
parent7bb8ac5bd6ed78105d214554713ba1e46e5ddd23 (diff)
downloadntapi-b2cb882ee287e581089b0687f88fd90fde4161d2.tar.bz2
ntapi-b2cb882ee287e581089b0687f88fd90fde4161d2.tar.xz
__ntapi_tt_spawn_foreign_process(): fix copy-paste error (cf. prev. for loop).
Diffstat (limited to 'src/process')
-rw-r--r--src/process/ntapi_tt_spawn_foreign_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process/ntapi_tt_spawn_foreign_process.c b/src/process/ntapi_tt_spawn_foreign_process.c
index 1b63c23..143ca28 100644
--- a/src/process/ntapi_tt_spawn_foreign_process.c
+++ b/src/process/ntapi_tt_spawn_foreign_process.c
@@ -181,7 +181,7 @@ int32_t __stdcall __ntapi_tt_spawn_foreign_process(nt_spawn_process_params * spa
if (fquote)
*ch_arg++ = '"';
- for (ch=*parg, fquote=0; *ch && !fquote; ) {
+ for (ch=*parg; *ch; ) {
if (ch[0] == '\\') {
for (mark=&ch[1]; *mark=='\\'; )
mark++;