diff options
author | Angus Pearson <angus@toaster.cc> | 2019-05-08 12:13:45 +0100 |
---|---|---|
committer | Angus Pearson <angus@toaster.cc> | 2019-05-08 12:13:45 +0100 |
commit | a1fb0be1d7c1228c7b1c076426cbdf30f9489077 (patch) | |
tree | 940fa71593be170b702ec88e0ca5574b087a1316 | |
parent | bea09a7fa6c2d332d6b298fb7a91cc04099faf47 (diff) | |
download | redis-a1fb0be1d7c1228c7b1c076426cbdf30f9489077.tar.gz |
Enlarge error buffer in redis-check-aof.c to remove compiler warning of output truncation through snprintf format string
-rw-r--r-- | src/redis-check-aof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis-check-aof.c b/src/redis-check-aof.c index 54ed85f0d..eedb09db5 100644 --- a/src/redis-check-aof.c +++ b/src/redis-check-aof.c @@ -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) { |