diff options
Diffstat (limited to 'net-p2p/mktorrent/files/patch-init.c')
-rw-r--r-- | net-p2p/mktorrent/files/patch-init.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net-p2p/mktorrent/files/patch-init.c b/net-p2p/mktorrent/files/patch-init.c new file mode 100644 index 000000000000..d54ad940705f --- /dev/null +++ b/net-p2p/mktorrent/files/patch-init.c @@ -0,0 +1,15 @@ +--- init.c.orig 2017-09-07 14:49:58 UTC ++++ init.c +@@ -512,10 +512,10 @@ EXPORT void init(metafile_t *m, int argc + + /* set the correct piece length. + default is 2^18 = 256kb. */ +- if (m->piece_length < 15 || m->piece_length > 28) { ++ if (m->piece_length < 15 || m->piece_length > 30) { + fprintf(stderr, + "The piece length must be a number between " +- "15 and 28.\n"); ++ "15 and 30.\n"); + exit(EXIT_FAILURE); + } + m->piece_length = 1 << m->piece_length; |