summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-03-17 09:14:36 +0000
committerNick White <git@njw.name>2020-03-17 09:14:36 +0000
commitf2265c79b7d7460ec91ebf79a891bbe5c689e7c6 (patch)
tree185fe639320dab2e784e6f49eb52f24ee24731ad
parentf89fb6e4cd9b33fb27bd50b90d160b7644fdd480 (diff)
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)
-rw-r--r--getabook.c2
-rw-r--r--getbnbook.c2
-rw-r--r--getgbook.c2
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