Enlarge error buffer in redis-check-aof.c to remove compiler warning of output truncation through snprintf format string

This commit is contained in:
Angus Pearson 2019-05-08 12:13:45 +01:00
parent bea09a7fa6
commit a1fb0be1d7

View File

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