Hi there, here's a patch for fixing a printf format string issue when
compiling with MinGW (and possibly other "architectures"...).

A big thanks to Zdenek OGAR Skalak for the hint!

Till


>From 0ba494ba61269478a3a822610e18ef66395ef656 Mon Sep 17 00:00:00 2001
From: Till Wimmer <g4-l...@tonarchiv.ch>
Date: Wed, 15 Jan 2020 12:50:38 +0100
Subject: [PATCH] Use inttypes macros for size_t format string

Signed-off-by: Till Wimmer <g4-l...@tonarchiv.ch>
---
 src/channels.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/channels.c b/src/channels.c
index a670d895..dabe03d7 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -862,7 +862,7 @@ int channel_default_bufferize(ssh_channel channel,
   }
 
   SSH_LOG(SSH_LOG_PACKET,
-          "placing %zu bytes into channel buffer (%s)",
+          "placing %" PRIdS " bytes into channel buffer (%s)",
           len,
           is_stderr ? "stderr" : "stdout");
   if (!is_stderr) {
-- 
2.20.1

Reply via email to