tail: fix tail +N syntax not working. Closes bug 221.
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 27 Mar 2009 02:36:02 +0000 (02:36 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 27 Mar 2009 02:36:02 +0000 (02:36 -0000)
coreutils/tail.c

index 2505fc3a604d5c9bf1417350334b41c67e890ff9..5dae2d35b124ff0393d6571a935882fa062f8c4a 100644 (file)
@@ -104,7 +104,7 @@ int tail_main(int argc, char **argv)
        if (argv[1] && (argv[1][0] == '+' || argv[1][0] == '-')
         && isdigit(argv[1][1])
        ) {
-               count = eat_num(&argv[1][1]);
+               count = eat_num(argv[1]);
                argv++;
                argc--;
        }