From a190437c4af063e758fd2b27ca29b27e7fc93680 Mon Sep 17 00:00:00 2001 From: Sofian Brabez Date: Mon, 1 Feb 2010 11:40:11 +0100 Subject: [PATCH] Replace : in hexdump with " " (two spaces) --- src/transport.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/transport.c b/src/transport.c index 1894485..61a12d6 100644 --- a/src/transport.c +++ b/src/transport.c @@ -90,7 +90,9 @@ debugdump(LIBSSH2_SESSION * session, buffer[used++] = ' '; } - buffer[used++] = (c == (width/2)-1) ? ':' : ' '; + buffer[used++] = ' '; + if ((width/2) - 1 == c) + buffer[used++] = ' '; } buffer[used++] = ':';