ctorrent: import from packages
[feed/packages.git] / net / ctorrent-svn / patches / 300-negative.patch
1 diff --git a/bencode.cpp b/bencode.cpp
2 index fef82ba..b7f14bc 100644
3 --- a/bencode.cpp
4 +++ b/bencode.cpp
5 @@ -45,6 +45,9 @@ size_t buf_int(const char *b, size_t len, char beginchar, char endchar,
6 p++;
7 len--;
8 }
9 + if( *p == '-'){
10 + p++; len--;
11 + }
12
13 for( psave = p; len && isdigit(*p); p++, len-- );
14