From 611f5b4b938f2ffcf2a2e71a847e4fd12587ca4b Mon Sep 17 00:00:00 2001 From: Rom Lemarchand Date: Mon, 14 Jan 2013 14:11:01 -0800 Subject: logwrap: fix off by 1 argument error Fix off by 1 argument parsing error in liblogwrap. Change-Id: I79832ae338a71c445f9f616d780c577826874386 --- logwrapper/logwrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'logwrapper/logwrapper.c') diff --git a/logwrapper/logwrapper.c b/logwrapper/logwrapper.c index 4f1bff9d4..e647b4d32 100644 --- a/logwrapper/logwrapper.c +++ b/logwrapper/logwrapper.c @@ -59,7 +59,7 @@ int main(int argc, char* argv[]) { usage(); } - rc = logwrap(argc, argv, &status); + rc = logwrap(argc - 1, &argv[1], &status); if (!rc) { if (WIFEXITED(status)) rc = WEXITSTATUS(status); -- cgit v1.2.3