]> git.saurik.com Git - redis.git/blobdiff - src/sort.c
Fix bug in gluing a deferred multi bulk length to the next reply chunk
[redis.git] / src / sort.c
index f53ad4865b0cffb6b52705fecdf544e849b414ee..79f7901054c0971e6c52addfbb126bd53afb1854 100644 (file)
@@ -369,7 +369,7 @@ void sortCommand(redisClient *c) {
          * replaced. */
         server.dirty += 1+outputlen;
         touchWatchedKey(c->db,storekey);
-        addReplySds(c,sdscatprintf(sdsempty(),":%d\r\n",outputlen));
+        addReplyLongLong(c,outputlen);
     }
 
     /* Cleanup */