gawk

[old] Sed-like interface to the Gopher protocol
Log | Files | Refs | LICENSE

commit 3d662aa02876db3c137bbda52d3e20a22c9ed235
parent 155554d8ec25d911c973b5979ae7a3be4cc99303
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Tue,  5 Jan 2021 15:05:36 -0800

Prefix CHUNK_SIZE with MY_ and double it's size

Diffstat:
Mgawk.h | 2+-
Mmain.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gawk.h b/gawk.h @@ -4,8 +4,8 @@ #define LEN(X) (sizeof(X) / sizeof(*X)) /* arbitrary limits */ -#define CHUNK_SIZE 256 /* for slurping data */ #define MY_ARGV_MAX 12 +#define MY_CHUNK_SIZE 512 /* for slurping data, not recursive */ #define MY_FILTER_MAX 4 #define MY_INPUT_MAX 128 #define MY_LINE_MAX 256 diff --git a/main.c b/main.c @@ -168,7 +168,7 @@ int gph_recvto(int sock, char const *const path) { FILE *fp; - char buf[CHUNK_SIZE]; + char buf[MY_CHUNK_SIZE]; ssize_t bytes; struct pollfd pfd;