diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2007-03-04 14:19:51 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2007-03-04 14:19:51 +0100 |
commit | a83bd4e74dfc0323e59d95513d95db4b78dd2b37 (patch) | |
tree | a5733a753f51225face5417023e789803fea032c /inotail.c | |
parent | 52a90bc7c3be7cb3330d4b5a9254c59c046b5f18 (diff) |
inotail.c: Fix bug in parsing of +<num> parameters
Diffstat (limited to 'inotail.c')
-rw-r--r-- | inotail.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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)) { |