mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
ctorrent: import from packages
Signed-off-by: Peter Wagner <tripolar@gmx.at>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
--- a/bencode.cpp
|
||||
+++ b/bencode.cpp
|
||||
@@ -44,6 +44,10 @@ size_t buf_long(const char *b,size_t len
|
||||
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;
|
||||
Reference in New Issue
Block a user