From 3eebc72843e50d33d16b5a3c155f57c9e1dff3bb Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 2 Sep 2022 07:48:33 -0400 Subject: [PATCH] Debug: remove zero bytes after newlines Last PR ended up adding a zero byte after each newline character in error. Signed-off-by: Simo Sorce --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index da0ad2c1..05a76869 100644 --- a/src/debug.c +++ b/src/debug.c @@ -40,7 +40,7 @@ void p11prov_debug(const char *fmt, ...) va_start(args, fmt); vfprintf(stddebug, fmt, args); va_end(args); - fwrite(newline, sizeof(newline), 1, stddebug); + fwrite(newline, 1, 1, stddebug); fflush(stddebug); }