From 395e11255cc924c2ee4cc4ddcbf30d269b193316 Mon Sep 17 00:00:00 2001 From: John Doe Date: Tue, 17 Feb 2015 00:03:21 +0800 Subject: [PATCH] Fix quicklist Pop() result Closes #2398 --- src/quicklist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quicklist.c b/src/quicklist.c index 6682b208..d2371a9b 100644 --- a/src/quicklist.c +++ b/src/quicklist.c @@ -1372,7 +1372,7 @@ REDIS_STATIC void *_quicklistSaver(unsigned char *data, unsigned int sz) { unsigned char *vstr; if (data) { vstr = zmalloc(sz); - memcpy(data, vstr, sz); + memcpy(vstr, data, sz); return vstr; } return NULL;