Static buffer in client struct has a constant size

This commit is contained in:
Pieter Noordhuis
2010-09-16 11:59:53 +02:00
parent 9e83ac06ef
commit f335779240
2 changed files with 3 additions and 8 deletions

View File

@ -313,8 +313,7 @@ typedef struct redisClient {
/* Response buffer */
int bufpos;
int buflen;
char buf[];
char buf[REDIS_REPLY_CHUNK_BYTES];
} redisClient;
struct saveparam {