From 347200978968f7224b13287c5e3a25cf2041af53 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 30 Oct 1998 02:36:05 +0000 Subject: [PATCH] get null termination right in logging --- log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.c b/log.c index 93d7a17c..d1da4613 100644 --- a/log.c +++ b/log.c @@ -235,7 +235,7 @@ static void log_formatted(char *op, struct file_struct *file) } if (l != 2) { - memmove(s+(l-1), s+1, strlen(s+1)); + memmove(s+(l-1), s+1, strlen(s+1)+1); } memcpy(p, n, l); -- 2.34.1