diff: make -U0 work
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 7 Mar 2007 22:45:42 +0000 (22:45 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 7 Mar 2007 22:45:42 +0000 (22:45 -0000)
coreutils/diff.c

index df43c98adbb1c66106183cf719542e62e48ab541..0eaf0b1d1266b8b84debdc6c1a1de419eed063f4 100644 (file)
@@ -1175,7 +1175,7 @@ int diff_main(int argc, char **argv)
                L_arg = L_arg->link;
        }
        if (option_mask32 & FLAG_U)
-               context = xatou_range(U_opt, 1, INT_MAX);
+               context = xatoi_u(U_opt);
 
        /*
         * Do sanity checks, fill in stb1 and stb2 and call the appropriate