Browse Source

fix parsing of IP:port endpoints

pull/163/head
Richard Fuchs 11 years ago
parent
commit
2220a3ac8d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/socket.c

+ 1
- 1
daemon/socket.c View File

@ -347,7 +347,7 @@ int endpoint_parse_any(endpoint_t *d, const char *s) {
d->port = atoi(ep+1);
if (d->port > 0xffff)
return -1;
sprintf(buf, "%.*s", len-1, s);
sprintf(buf, "%.*s", len, s);
for (i = 0; i < __SF_LAST; i++) {
fam = &__socket_families[i];


Loading…
Cancel
Save