sick

sign and check files using ed25519
git clone git://z3bra.org/sick
Log | Files | Refs | Submodules | README | LICENSE

commit b9f3b5b125d654314a9b5964d7728b4e7222fd63
parent 7e8ba70b517b34855a6d125a85fe139b35cd2789
Author: z3bra <contactatz3bradotorg>
Date:   Thu Feb 16 15:16:02 +0100

Change MAX_INPUT to _POSIX_MAX_INPUT

Diffstat:
sick.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sick.c b/sick.c @@ -82,13 +82,13 @@ static size_t bufferize(char **buf, FILE *fp) { size_t n, len = 0; - char chunk[MAX_INPUT], *tmp; + char chunk[_POSIX_MAX_INPUT], *tmp; /* * For each chunk read, reallocate the buffer size to fit the newly * read data, and copy it over */ - while ((n = fread(chunk, 1, MAX_INPUT, fp)) > 0) { + while ((n = fread(chunk, 1, _POSIX_MAX_INPUT, fp)) > 0) { if ((tmp = realloc(*buf, len + n)) == NULL) { free(*buf); *buf = NULL;