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,14 @@
|
||||
diff --git a/bencode.cpp b/bencode.cpp
|
||||
index fef82ba..b7f14bc 100644
|
||||
--- a/bencode.cpp
|
||||
+++ b/bencode.cpp
|
||||
@@ -45,6 +45,9 @@ size_t buf_int(const char *b, size_t len, char beginchar, char endchar,
|
||||
p++;
|
||||
len--;
|
||||
}
|
||||
+ if( *p == '-'){
|
||||
+ p++; len--;
|
||||
+ }
|
||||
|
||||
for( psave = p; len && isdigit(*p); p++, len-- );
|
||||
|
||||
Reference in New Issue
Block a user