Merge pull request #6087 from AngusP/linux-build-warnings

[Minor] Fix build warnings on Linux
This commit is contained in:
Salvatore Sanfilippo 2019-05-10 12:23:42 +02:00 committed by GitHub
commit 19c3d5b743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
deps/hiredis/read.c vendored
View File

@ -31,6 +31,7 @@
#include "fmacros.h"
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#ifndef _MSC_VER
#include <unistd.h>

View File

@ -37,7 +37,7 @@
snprintf(error, sizeof(error), "0x%16llx: %s", (long long)epos, __buf); \
}
static char error[1024];
static char error[1044];
static off_t epos;
int consumeNewline(char *buf) {