From b4b858d67c1698155f871d381548cacd289f1d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Valur=20J=C3=B3nsson?= Date: Tue, 22 Mar 2022 17:17:22 +0000 Subject: [PATCH] fix call to sdscatfmt --- hiredis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hiredis.c b/hiredis.c index 364ad6e32..fb4479502 100644 --- a/hiredis.c +++ b/hiredis.c @@ -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); }