Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
Immanuel
/
btpd
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
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 anni fa
parent
2886768d30
commit
8f4fde49ee
1 ha cambiato i file
con
1 aggiunte
e
1 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
misc/benc.c
+ 1
- 1
misc/benc.c
Vedi File
@@ -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…
Annulla
Salva