From: Felix Fietkau Date: Mon, 19 Mar 2012 18:34:37 +0000 (+0100) Subject: fix log buffer overflow handling X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=36dba9c4a9aee236928459d3d38fd08e5924259b;p=project%2Fnetifd.git fix log buffer overflow handling --- 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) {