From a83bd4e74dfc0323e59d95513d95db4b78dd2b37 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 4 Mar 2007 14:19:51 +0100 Subject: inotail.c: Fix bug in parsing of + parameters --- inotail.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inotail.c b/inotail.c index 5a58a92..8388bad 100644 --- a/inotail.c +++ b/inotail.c @@ -405,9 +405,10 @@ int main(int argc, char **argv) mode = M_BYTES; /* fall through */ case 'n': - if (*optarg == '+') + if (*optarg == '+') { from_begin = 1; - else if (*optarg == '-') + optarg++; + } else if (*optarg == '-') optarg++; if (!isdigit(*optarg)) { -- cgit v1.2.3-54-g00ecf