tChange MAX_INPUT to _POSIX_MAX_INPUT - sick - sign and check files using ed25519
(HTM) git clone git://z3bra.org/sick
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit b9f3b5b125d654314a9b5964d7728b4e7222fd63
(DIR) parent 7e8ba70b517b34855a6d125a85fe139b35cd2789
(HTM) Author: z3bra <contactatz3bradotorg>
Date: Thu, 16 Feb 2017 15:16:02 +0100
Change MAX_INPUT to _POSIX_MAX_INPUT
Diffstat:
M sick.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/sick.c b/sick.c
t@@ -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;