summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-19 19:34:37 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-03-19 19:34:37 +0100
commit36dba9c4a9aee236928459d3d38fd08e5924259b (patch)
treeede7a1bae6037da69cce4440580c5470878c173b /main.c
parent41a40733dc80946841c9241ec56a4670a5943709 (diff)
downloadnetifd-36dba9c4a9aee236928459d3d38fd08e5924259b.tar.gz
fix log buffer overflow handling
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 2d8e46b..3fe38bf 100644
--- a/main.c
+++ b/main.c
@@ -116,7 +116,7 @@ retry:
}
if (buf > proc->log_buf && len > 0)
- memmove(buf, proc->log_buf, len);
+ memmove(proc->log_buf, buf, len);
if (len == LOG_BUF_SIZE) {
if (!proc->log_overflow) {