allow negative integers ... should fix random "error, initial meta info failed" --- bencode.cpp.orig +++ bencode.cpp @@ -44,6 +44,10 @@ p++; len--; } + if( *p == '-'){ + p++; len--; + } + for(psave = p; len && isdigit(*p); p++,len--) ; if(!len || MAX_INT_SIZ < (p - psave) || *p != endchar) return 0;