From 86abbd5ac68faae6bebd6af395186220abf40bed Mon Sep 17 00:00:00 2001 From: bvernoux Date: Fri, 19 Dec 2014 18:28:18 +0100 Subject: [PATCH] Fix sd cat output (now use cprint()) --- common/microsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/microsd.c b/common/microsd.c index 5e4725d6..a0b4cdd5 100644 --- a/common/microsd.c +++ b/common/microsd.c @@ -622,7 +622,7 @@ int cmd_sd_cat(t_hydra_console *con, t_tokenline_parsed *p) } else { /* Force end of string at end of buffer */ inbuf[cnt] = 0; - cprintf(con, "%s", inbuf); + cprint(con, (char *)inbuf, cnt); } } if (!hex)