get null termination right in logging

This commit is contained in:
Andrew Tridgell
1998-10-30 02:36:05 +00:00
parent f27b53f5b5
commit 3472009789

2
log.c
View File

@@ -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);