Skip to content

Commit

Permalink
fix call to sdscatfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kristjanvalur committed Jul 7, 2022
1 parent 714ce2b commit d7341ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hiredis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d7341ca

Please sign in to comment.