Enlarge error buffer in redis-check-aof.c to remove compiler warning of output truncation through snprintf format string
This commit is contained in:
parent
bea09a7fa6
commit
a1fb0be1d7
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user