int from_child_pipe[2];
if (verbose >= 2)
- print_child_argv(command);
+ print_child_argv("opening connection using:", command);
if (fd_pair(to_child_pipe) < 0 || fd_pair(from_child_pipe) < 0) {
rsyserr(FERROR, errno, "pipe");
return ret;
}
-void print_child_argv(char **cmd)
+void print_child_argv(const char *prefix, char **cmd)
{
- rprintf(FCLIENT, "opening connection using ");
+ rprintf(FCLIENT, "%s ", prefix);
for (; *cmd; cmd++) {
/* Look for characters that ought to be quoted. This
* is not a great quoting algorithm, but it's
void *new_ptr;
size_t new_size = lp->malloced;
if (incr < 0)
- new_size -= incr; /* increase slowly */
+ new_size += -incr; /* increase slowly */
else if (new_size < (size_t)incr)
new_size += incr;
else