diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-01-13 08:27:46 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-01-13 08:27:46 +0000 |
commit | 184022e4fbd9beb161d98b7e4e8cc6088c0b6321 (patch) | |
tree | 920e0b35fdf41c6eafdf80e157da993c38087981 | |
parent | 849f06decd5b92be1797e655eb138e29b2a27321 (diff) |
Handle all isspace() chars the same for -w and -b. ok millert@ markus@
-rw-r--r-- | usr.bin/diff/diffreg.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c index afd15b57154..2757ef06f53 100644 --- a/usr.bin/diff/diffreg.c +++ b/usr.bin/diff/diffreg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diffreg.c,v 1.61 2004/12/09 18:56:10 millert Exp $ */ +/* $OpenBSD: diffreg.c,v 1.62 2005/01/13 08:27:45 otto Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. @@ -65,7 +65,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: diffreg.c,v 1.61 2004/12/09 18:56:10 millert Exp $"; +static const char rcsid[] = "$OpenBSD: diffreg.c,v 1.62 2005/01/13 08:27:45 otto Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -1237,6 +1237,9 @@ readhash(FILE *f) for (i = 0;;) { switch (t = getc(f)) { case '\t': + case '\r': + case '\v': + case '\f': case ' ': space++; continue; |