From f2265c79b7d7460ec91ebf79a891bbe5c689e7c6 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 17 Mar 2020 09:14:36 +0000 Subject: Increase size of memory allocated for url so that bookid cannot be made big enough to cause truncation (thanks to format-truncation warnings from recent gcc for this) --- getabook.c | 2 +- getbnbook.c | 2 +- getgbook.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/getabook.c b/getabook.c index 5f85143..6f7d2fd 100644 --- a/getabook.c +++ b/getabook.c @@ -16,7 +16,7 @@ " otherwise, all available pages will be downloaded\n" #define USESSL 0 -#define URLMAX 1024 +#define URLMAX 2048 #define STRMAX 1024 #define MAXPAGES 9999 diff --git a/getbnbook.c b/getbnbook.c index a63416d..78301dc 100644 --- a/getbnbook.c +++ b/getbnbook.c @@ -16,7 +16,7 @@ " otherwise, all available pages will be downloaded\n" #define USESSL 0 -#define URLMAX 1024 +#define URLMAX 2048 #define STRMAX 1024 #define MAXPAGES 9999 diff --git a/getgbook.c b/getgbook.c index 5e36c04..dc9049c 100644 --- a/getgbook.c +++ b/getgbook.c @@ -17,7 +17,7 @@ " otherwise, all available pages will be downloaded\n" #define USESSL 1 -#define URLMAX 1024 +#define URLMAX 2048 #define STRMAX 1024 #define MAXPAGES 9999 #define COOKIENUM 5 -- cgit v1.2.3