Просмотр исходного кода

missed change from previous commit

ambrop7 13 лет назад
Родитель
Сommit
4d6471b927
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      ncd-request/ncd-request.c

+ 1 - 1
ncd-request/ncd-request.c

@@ -125,7 +125,7 @@ static int make_connect_addr (const char *str, struct BConnection_addr *out_addr
     size_t i;
     size_t i;
     
     
     if (i = string_begins_with(str, "unix:")) {
     if (i = string_begins_with(str, "unix:")) {
-        *out_addr = BConnection_addr_unix(str + i);
+        *out_addr = BConnection_addr_unix(str + i, strlen(str + 1));
     }
     }
     else if (i = string_begins_with(str, "tcp:")) {
     else if (i = string_begins_with(str, "tcp:")) {
         BAddr baddr;
         BAddr baddr;