From 1645d47b73cf9c6ad05a941e9df7c9f20c937105 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 4 Jun 2021 17:19:19 -0400 Subject: [PATCH] Fix clortho The suggested correection for clortho was in fact incorrect. Revert back and cast it. --- confluent_osdeploy/utils/clortho.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/utils/clortho.c b/confluent_osdeploy/utils/clortho.c index 53480ded..fef5bde2 100644 --- a/confluent_osdeploy/utils/clortho.c +++ b/confluent_osdeploy/utils/clortho.c @@ -131,7 +131,7 @@ int main(int argc, char* argv[]) { buffer[currlen] = 0; } if (currtype == 2) { - dprintf(sock, "\x03%zu", currlen); + dprintf(sock, "\x03%c", (int)currlen); ret = write(sock, buffer, currlen); slen = strlen(cryptedpass) & 0xff; dprintf(sock, "\x04%c%s", slen, cryptedpass);