increase buffer, fix compiler warning (-Wall) - gopherproxy-c - Gopher HTTP proxy in C (CGI)
(HTM) git clone git://git.codemadness.org/gopherproxy-c
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2d459eda3db761482486144a07f60a62447fd577
(DIR) parent 00c13341a4b18c68b1ea0b157c84b840c5f89245
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 4 Aug 2025 14:41:32 +0200
increase buffer, fix compiler warning (-Wall)
Diffstat:
M gopherproxy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/gopherproxy.c b/gopherproxy.c
@@ -499,7 +499,7 @@ servedir(const char *server, const char *port, const char *path, const char *que
struct visited v;
struct linebuf lb;
const char *prefix = "";
- char buf[1024], *uri;
+ char buf[2048], *uri;
char *line;
size_t totalsiz, linenr;
ssize_t n;