瀏覽代碼

Merge pull request #36 from brianmwaters/master

Accept bencoded dictionaries whose keys are not in alphabetical order.

Closes GH-30
Closes GH-36
master
Marq Schneider 12 年之前
父節點
當前提交
c408419bd2
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. +1
    -3
      misc/benc.c

+ 1
- 3
misc/benc.c 查看文件

@@ -233,10 +233,8 @@ benc_dget_any(const char *p, const char *key)
cmp = strncmp(bstr, key, blen);
if (cmp == 0 && len == blen)
return p;
else if (cmp <= 0)
p = benc_next(p);
else
return NULL;
p = benc_next(p);
}
return NULL;
}


Loading…
取消
儲存