OSDN Git Service
(root)
/
android-x86
/
system-netd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c20787
)
netd: do check on command, not buffer.
author
Nick Kralevich
<nnk@google.com>
Wed, 7 Mar 2012 20:54:41 +0000
(12:54 -0800)
committer
Nick Kralevich
<nnk@google.com>
Wed, 7 Mar 2012 20:54:41 +0000
(12:54 -0800)
Bug:
6132094
Change-Id: I76aef21b07c07db76bbc6587ae732b1ceb4488ce
logwrapper.c
patch
|
blob
|
history
diff --git
a/logwrapper.c
b/logwrapper.c
index
d9913f2
..
3601b70
100644
(file)
--- a/
logwrapper.c
+++ b/
logwrapper.c
@@
-200,7
+200,7
@@
int system_nosh(const char *command)
* The command to argp splitting is from code that was
* reverted in Change: 11b4e9b2
*/
- if (strnlen(
buffer
, sizeof(buffer) - 1) == sizeof(buffer) - 1) {
+ if (strnlen(
command
, sizeof(buffer) - 1) == sizeof(buffer) - 1) {
LOGE("command line too long while processing: %s", command);
errno = E2BIG;
return -1;