diff options
author | Nick Kralevich <nnk@google.com> | 2012-03-07 14:35:12 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-03-07 14:35:12 -0800 |
commit | 88ec4ed21deb1340675ba026fda46e6183c2e219 (patch) | |
tree | 147093a73e7177b761c04c70fa999e44e607a5dc | |
parent | c91e3d476a8002fc6e8f994152be5dc4b3b85489 (diff) | |
parent | 1babab9febdbd05b7b6d72e0728f49ee8d4b9bd2 (diff) | |
download | netd-88ec4ed21deb1340675ba026fda46e6183c2e219.tar.gz |
am 1babab9f: netd: do check on command, not buffer.
* commit '1babab9febdbd05b7b6d72e0728f49ee8d4b9bd2':
netd: do check on command, not buffer.
-rw-r--r-- | logwrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/logwrapper.c b/logwrapper.c index d9913f27..3601b70d 100644 --- 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; |