summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
411c04f)
works properly: rsync://backup@otherbox/module/a:123:b
if (p[1] == ':')
*port_ptr = atoi(p+2);
} else {
if (p[1] == ':')
*port_ptr = atoi(p+2);
} else {
- if ((p = strchr(s, ':')) != NULL) {
+ if ((p = strchr(s, ':')) != NULL && p < s + hostlen) {
hostlen = p - s;
*port_ptr = atoi(p+1);
}
hostlen = p - s;
*port_ptr = atoi(p+1);
}