summaryrefslogtreecommitdiff
path: root/inotail.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-03-04 14:19:51 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-03-04 14:19:51 +0100
commita83bd4e74dfc0323e59d95513d95db4b78dd2b37 (patch)
treea5733a753f51225face5417023e789803fea032c /inotail.c
parent52a90bc7c3be7cb3330d4b5a9254c59c046b5f18 (diff)
inotail.c: Fix bug in parsing of +<num> parameters
Diffstat (limited to 'inotail.c')
-rw-r--r--inotail.c5
1 files 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)) {