SCAN: use define REDIS_LONGSTR_SIZE instead of fixed len.

This commit is contained in:
antirez 2013-10-25 11:48:18 +02:00
parent 8cdaf604ce
commit d1c1f62ed5

View File

@ -319,7 +319,7 @@ void scanCallback(void *privdata, const dictEntry *de) {
void scanCommand(redisClient *c) {
int rv;
int i, j;
char buf[32];
char buf[REDIS_LONGSTR_SIZE];
list *keys = listCreate();
listNode *ln, *ln_;
unsigned long cursor = 0;