Fix sessiond needed checks
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 Jan 2012 14:37:39 +0000 (09:37 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 Jan 2012 14:37:39 +0000 (09:37 -0500)
commitba2926efa2f16966165993d654f99574c3624ef4
tree2404768caf68c4efcbe1c27476a8cf04226ee53f
parentbbccc3d2cb9f83aecf00a207de9eef68c766bf9c
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 <mathieu.desnoyers@efficios.com>
src/bin/lttng/lttng.c
This page took 0.024187 seconds and 4 git commands to generate.