projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41a4073
)
fix log buffer overflow handling
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 19 Mar 2012 18:34:37 +0000
(19:34 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 19 Mar 2012 18:34:37 +0000
(19:34 +0100)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 2d8e46b1b9d82bf3676af5cfaf603b4d76c04a85..3fe38bf225b3a2dc93e02112e145119dbf0df584 100644
(file)
--- 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) {