summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2005-01-13 08:27:45 +0000
committerotto <otto@openbsd.org>2005-01-13 08:27:45 +0000
commitb5b605d58544d7b2d5d3e436dafc9615005accc7 (patch)
treedd9a0d11bad7f68ea13b92298f8f6f9aebfdf71a /usr.bin/diff/diffreg.c
parentprettier (diff)
downloadwireguard-openbsd-b5b605d58544d7b2d5d3e436dafc9615005accc7.tar.xz
wireguard-openbsd-b5b605d58544d7b2d5d3e436dafc9615005accc7.zip
Handle all isspace() chars the same for -w and -b. ok millert@ markus@
Diffstat (limited to 'usr.bin/diff/diffreg.c')
-rw-r--r--usr.bin/diff/diffreg.c7
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;