X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Flttng.c;h=57927d4f3d301f87ceb11a0ec85ea489b4e3f4bd;hb=ba2926efa2f16966165993d654f99574c3624ef4;hp=a8cc2e72ff1ef1809d7941e5870ffde1418e9d88;hpb=bbccc3d2cb9f83aecf00a207de9eef68c766bf9c;p=lttng-tools.git diff --git a/src/bin/lttng/lttng.c b/src/bin/lttng/lttng.c index a8cc2e72f..57927d4f3 100644 --- a/src/bin/lttng/lttng.c +++ b/src/bin/lttng/lttng.c @@ -387,9 +387,9 @@ static int check_args_no_sessiond(int argc, char **argv) int i; for (i = 0; i < argc; i++) { - if ((strncmp(argv[i], "-h", 2) == 0) || - strncmp(argv[i], "--h", 3) == 0 || - strncmp(argv[i], "--list-options", 14)) { + if ((strncmp(argv[i], "-h", sizeof("-h")) == 0) || + strncmp(argv[i], "--h", sizeof("--h")) == 0 || + strncmp(argv[i], "--list-options", sizeof("--list-options")) == 0) { return 1; } }