From 116aa12da74ff8e3b9238694d09647668dc3f3bc Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 13 Apr 2008 10:17:37 +0000 Subject: [PATCH] Fix segfault in torrent_get_torrent_state() --- src/deluge_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index 97da7fca8..6c18f6a20 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -1315,7 +1315,7 @@ std::cout << asctime(timeinfo) << " torrent_get_torrent_state()" << std::endl; PyTuple_SetItem(pieces_range, i/2, rangepos); } - PyObject *ret = Py_BuildValue("{s:s,s:i,s:i,s:l,s:l,s:f,s:f,s:b,s:f,s:L,s:L,s:s,s:s,s:f,s:L,s:L,s:O,s:i,s:i,s:L,s:L,s:i,s:l,s:l,s:b,s:b,s:L,s:L,s:L,s:b}", + PyObject *ret = Py_BuildValue("{s:s,s:i,s:i,s:l,s:l,s:f,s:f,s:b,s:f,s:L,s:L,s:s,s:s,s:f,s:L,s:L,s:O,s:i,s:i,s:L,s:i,s:i,s:l,s:l,s:b,s:b,s:L,s:L,s:L,s:b}", "name", t.handle.get_torrent_info().name().c_str(), "num_files", t.handle.get_torrent_info().num_files(), "state", s.state,