summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)) {