Browse Source

ncd-request: fix typo which broke the ncd-request program

ambrop7 13 năm trước cách đây
mục cha
commit
f97b2c4412
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
     
     if (i = string_begins_with(str, "unix:")) {
-        *out_addr = BConnection_addr_unix(str + i, strlen(str + 1));
+        *out_addr = BConnection_addr_unix(str + i, strlen(str + i));
     }
     else if (i = string_begins_with(str, "tcp:")) {
         BAddr baddr;