summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/exec.c b/src/core/exec.c
index 49261194d..139cf7a84 100644
--- a/src/core/exec.c
+++ b/src/core/exec.c
@@ -358,7 +358,7 @@ char * concat_args ( char **args ) {
ptr = string;
for ( arg = args ; *arg ; arg++ ) {
ptr += sprintf ( ptr, "%s%s",
- ( ( ptr == string ) ? "" : " " ), *arg );
+ ( ( arg == args ) ? "" : " " ), *arg );
}
assert ( ptr < ( string + len ) );