diff options
-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; |