From: Mathieu Desnoyers Date: Wed, 25 Jan 2012 14:37:39 +0000 (-0500) Subject: Fix sessiond needed checks X-Git-Tag: v2.0-pre19~50 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=ba2926efa2f16966165993d654f99574c3624ef4;hp=ba2926efa2f16966165993d654f99574c3624ef4;p=lttng-tools.git Fix sessiond needed checks - strncmp should compare up to and _include_ the \0 (was off by one). Instead of 2 for "-h", it should be 3. Use "sizeof("-h")" instead of hardcoding 3. - strncmp logic was reversed for the --list-options check. Signed-off-by: Mathieu Desnoyers ---