本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
Immanuel
/
btpd
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
Fix bug in benc_length. benc_first shouldn't be used here since it returns
NULL on empty lists or dictionaries. This could cause crashes. Reported by Robert Jonsson.
master
Richard Nyberg
18 年之前
父節點
2886768d30
當前提交
8f4fde49ee
共有
1 個檔案被更改
,包括
1 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
misc/benc.c
+ 1
- 1
misc/benc.c
查看文件
@@ -114,7 +114,7 @@ benc_length(const char *p)
case 'd':
case 'l':
blen = 2; // [l|d]...e
next =
benc_first(p)
;
next =
p + 1
;
while (*next != 'e') {
size_t len = benc_length(next);
blen += len;
Write
Preview
Loading…
取消
儲存