X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/47c1197534c3247a2669df86fbc36d4094d6ba93..ff1b9344c965a6dcad791a58024fb5886ae0637e:/options.c diff --git a/options.c b/options.c index 4a5c65cd..ec57901c 100644 --- a/options.c +++ b/options.c @@ -1811,7 +1811,6 @@ char *check_for_hostspec(char *s, char **host_ptr, int *port_ptr) } if (*s == '[' && (p = strchr(s, ']')) != NULL && p[1] == ':') { - s++; *p = '\0'; not_host = strchr(s, '/') || !strchr(s, ':'); *p = ']';