Commit d1c1f62e authored by antirez's avatar antirez
Browse files

SCAN: use define REDIS_LONGSTR_SIZE instead of fixed len.

parent 8cdaf604
...@@ -319,7 +319,7 @@ void scanCallback(void *privdata, const dictEntry *de) { ...@@ -319,7 +319,7 @@ void scanCallback(void *privdata, const dictEntry *de) {
void scanCommand(redisClient *c) { void scanCommand(redisClient *c) {
int rv; int rv;
int i, j; int i, j;
char buf[32]; char buf[REDIS_LONGSTR_SIZE];
list *keys = listCreate(); list *keys = listCreate();
listNode *ln, *ln_; listNode *ln, *ln_;
unsigned long cursor = 0; unsigned long cursor = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment