From: David Goulet Date: Wed, 18 Jan 2012 17:21:42 +0000 (-0500) Subject: Fix strncmp for the help option check X-Git-Tag: v2.0-pre17~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=76150f62109c9012707e54afa031bc7572ca9a5c;p=lttng-tools.git Fix strncmp for the help option check Signed-off-by: David Goulet --- diff --git a/lttng/lttng.c b/lttng/lttng.c index 45a6fa0be..69b563d4a 100644 --- a/lttng/lttng.c +++ b/lttng/lttng.c @@ -368,7 +368,7 @@ static int check_help_command(int argc, char **argv) for (i = 0; i < argc; i++) { if ((strncmp(argv[i], "-h", 2) == 0) || - strncmp(argv[i], "--h", 3)) { + strncmp(argv[i], "--h", 3) == 0) { return 1; } }