X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/2e8259bb0bc5ffe64df9075ef8f1e8050caf951c..0b515981fcfb4ba60d6f01ab604d11e13b85e48f:/util.c diff --git a/util.c b/util.c index 1fc31069..b309a8da 100644 --- a/util.c +++ b/util.c @@ -90,9 +90,9 @@ int fd_pair(int fd[2]) 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 @@ -1478,7 +1478,7 @@ void *expand_item_list(item_list *lp, size_t item_size, 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