fix call to sdscatfmt

This commit is contained in:
Kristján Valur Jónsson 2022-03-22 17:17:22 +00:00
parent 5e8900ae24
commit b4b858d67c

View File

@ -608,7 +608,7 @@ long long redisFormatSdsCommandArgv(sds *target, int argc, const char **argv,
cmd = sdscatfmt(cmd, "*%i\r\n", argc);
for (j=0; j < argc; j++) {
len = argvlen ? argvlen[j] : strlen(argv[j]);
cmd = sdscatfmt(cmd, "$%U\r\n", len);
cmd = sdscatfmt(cmd, "$%U\r\n", (unsigned long long)len);
cmd = sdscatlen(cmd, argv[j], len);
cmd = sdscatlen(cmd, "\r\n", sizeof("\r\n")-1);
}