Fix sessiond needed checks
[lttng-tools.git] / src / bin / lttng / lttng.c
index a8cc2e72ff1ef1809d7941e5870ffde1418e9d88..57927d4f3d301f87ceb11a0ec85ea489b4e3f4bd 100644 (file)
@@ -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;
                }
        }
This page took 0.026042 seconds and 5 git commands to generate.