Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
Immanuel
/
btpd
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
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
hace 18 años
padre
2886768d30
commit
8f4fde49ee
Se han
modificado 1 ficheros
con
1 adiciones
y
1 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-1
misc/benc.c
+ 1
- 1
misc/benc.c
Ver fichero
@@ -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;
Escribir
Vista previa
Cargando…
Cancelar
Guardar