]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-look-separator.patch
75bdc91a0cfaf4480453bb2ceba6f3e20ec54a2f
[packages/util-linux.git] / util-linux-look-separator.patch
1 - look - doesn't work with separators
2
3 --- util-linux-2.12p/misc-utils/look.c.sep      2005-05-02 12:51:17.808227240 +0200
4 +++ util-linux-2.12p/misc-utils/look.c  2005-05-02 12:53:18.078943312 +0200
5 @@ -327,9 +327,12 @@
6         /* copy, ignoring things that should be ignored */
7         p = comparbuf;
8         i = stringlen;
9 -       while(s2 < s2end && *s2 != '\n' && i--) {
10 +       while(s2 < s2end && *s2 != '\n' && i) {
11                 if (!dflag || isalnum(*s2))
12 +               {
13                         *p++ = *s2;
14 +                       i--;
15 +               }
16                 s2++;
17         }
18         *p = 0;
This page took 0.048743 seconds and 2 git commands to generate.