summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-30 02:36:05 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-30 02:36:05 +0000
commit347200978968f7224b13287c5e3a25cf2041af53 (patch)
tree9ea55e5657d0fdf7b50defbe547521f03fba5c1c /log.c
parentf27b53f5b564fbfded415de4590f52f73d415fd4 (diff)
downloadrsync-347200978968f7224b13287c5e3a25cf2041af53.tar.gz
get null termination right in logging
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
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);