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 43fdf3b404
commit 64722b0946

View File

@ -329,7 +329,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;