- add patch...
This commit is contained in:
parent
f4a1e4b8d4
commit
d5d9a0977f
16
util-linux-2.12p-look-separator.patch
Normal file
16
util-linux-2.12p-look-separator.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
--- util-linux-2.12p/misc-utils/look.c.sep 2005-05-02 12:51:17.808227240 +0200
|
||||||
|
+++ util-linux-2.12p/misc-utils/look.c 2005-05-02 12:53:18.078943312 +0200
|
||||||
|
@@ -327,9 +327,12 @@
|
||||||
|
/* copy, ignoring things that should be ignored */
|
||||||
|
p = comparbuf;
|
||||||
|
i = stringlen;
|
||||||
|
- while(s2 < s2end && *s2 != '\n' && i--) {
|
||||||
|
+ while(s2 < s2end && *s2 != '\n' && i) {
|
||||||
|
if (!dflag || isalnum(*s2))
|
||||||
|
+ {
|
||||||
|
*p++ = *s2;
|
||||||
|
+ i--;
|
||||||
|
+ }
|
||||||
|
s2++;
|
||||||
|
}
|
||||||
|
*p = 0;
|
Loading…
Reference in New Issue
Block a user